/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    height: 100vh;
    overflow: hidden;
    color: #f8fafc;
}

.dashboard {
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-header-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
}

.mobile-menu-btn {
    padding: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    width: 22rem;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid #334155;
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid #334155;
    background: rgba(15, 23, 42, 0.8);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    transform: translate(30px, -30px);
}

.sidebar-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: #f59e0b;
    font-weight: 600;
}

.tools-section {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

/* Pro Upgrade Banner */
.pro-banner {
    margin: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

/* Facebook Group Banner */
.facebook-banner {
    margin: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    border: 1px solid rgba(24, 119, 242, 0.3);
    border-radius: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.pro-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.pro-banner:hover::before {
    left: 100%;
}

.pro-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Facebook Banner Effects */
.facebook-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.facebook-banner:hover::before {
    left: 100%;
}

.facebook-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.facebook-banner-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.facebook-banner-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.facebook-banner-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.facebook-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    cursor: pointer;
}

.facebook-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.pro-banner-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pro-banner-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.pro-banner-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pro-banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.pro-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Account Section */
.account-section {
    padding: 1.5rem;
    border-top: 1px solid #334155;
    background: rgba(15, 23, 42, 0.9);
    position: relative;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid transparent;
}

.account-trigger:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #475569;
}

.account-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.125rem;
}

.account-plan {
    font-size: 0.75rem;
    color: #94a3b8;
}

.account-chevron {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    transition: transform 0.3s;
}

.account-trigger.open .account-chevron {
    transform: rotate(180deg);
}

/* Account Dropdown (drops UP) */
.account-dropdown {
    position: absolute;
    bottom: 100%;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #475569;
    border-radius: 0.75rem;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 50;
}

.account-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0.5rem;
    margin: 0.25rem;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dropdown-item:first-child {
    margin-top: 0.5rem;
}

.dropdown-item:last-child {
    margin-bottom: 0.5rem;
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-icon {
    width: 1rem;
    height: 1rem;
}

.tools-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-title::before {
    content: '';
    width: 3px;
    height: 1rem;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 2px;
}

.tool-item {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background: rgba(30, 41, 59, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.5s;
}

.tool-item:hover::before {
    left: 100%;
}

.tool-item:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tool-item.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border-color: #f59e0b;
    color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.tool-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.tool-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #f8fafc;
}

.tool-description {
    font-size: 0.875rem;
    opacity: 0.8;
    color: #cbd5e1;
}

.tool-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Controls Panel */
.controls-panel {
    width: 26rem;
    background: rgba(30, 41, 59, 0.95);
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.controls-header {
    padding: 1.28rem 2rem;
    border-bottom: 1px solid #334155;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.controls-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.controls-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
}

.controls-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
}

.controls-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 0;
    border-bottom: 1px solid #475569;
    margin-bottom: 1rem;
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #f59e0b, transparent);
}

.form-section-toggle {
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-radius: 0.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.form-section-content {
    transition: all 0.3s ease-in-out;
}

.form-section-content.collapsed {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #475569;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.color-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.color-picker {
    width: 3.5rem;
    height: 3rem;
    border: 2px solid #475569;
    border-radius: 0.5rem;
    cursor: pointer;
    background: transparent;
}

.range-input {
    width: 100%;
    margin-top: 0.75rem;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #475569;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* Input with Toggle Checkbox - Compact Design */
.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-toggle input[type="text"] {
    padding-right: 45px;
}

.toggle-checkbox {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
    accent-color: #f59e0b;
}

.input-with-toggle input[type="text"]:disabled {
    background-color: rgba(71, 85, 105, 0.3);
    color: #94a3b8;
    border-color: #475569;
}

/* Custom Checkbox Styling for standalone checkboxes */
.form-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #475569;
    border-radius: 0.375rem;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    width: 0.5rem;
    height: 0.25rem;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(-45deg) scale(1);
}

.form-checkbox:hover .checkbox-custom {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.05);
}

.checkbox-label {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    font-weight: 500;
}

.controls-footer {
    padding: 2.06rem;
    border-top: 1px solid #334155;
    background: rgba(15, 23, 42, 0.8);
}

.button-group {
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    border: 2px solid #475569;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 1);
    border-color: #64748b;
    transform: translateY(-1px);
}

/* Preview Panel */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.preview-header {
    padding: 2.04rem 2rem;
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    min-height: 6rem;
}

.preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-modes {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 2px solid #475569;
}

.mode-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    background: none;
    color: #94a3b8;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-btn:hover {
    background: rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
}

.mode-btn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.preview-content {
    flex: 1;
    padding: 2rem;
    overflow: auto;
}

.preview-container {
    height: 100%;
    min-height: 28rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
}

.preview-container.mobile {
    width: 22rem;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state svg {
    width: 5rem;
    height: 5rem;
    color: #64748b;
    margin: 0 auto 1.5rem auto;
}

.empty-state p {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
    }

    .dashboard {
        padding-top: 4rem;
    }

    .sidebar {
        position: fixed;
        height: calc(100vh - 4rem);
        top: 4rem;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        flex-direction: column;
        height: calc(100vh - 4rem);
    }

    .controls-panel {
        width: 100%;
        max-height: 50vh;
        overflow-y: auto;
    }

    .preview-panel {
        flex: 1;
        min-height: 50vh;
    }

    .form-section-toggle {
        display: flex;
    }

    .form-section-content {
        max-height: none;
        overflow: visible;
    }

    .pro-banner {
        margin: 1rem;
        padding: 1rem;
    }

    .account-section {
        padding: 1rem;
    }

    .account-dropdown {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .controls-panel {
        border-right: none;
        border-bottom: 1px solid #334155;
        max-height: 40vh;
    }

    .preview-panel {
        min-height: 60vh;
    }

    .preview-content {
        padding: 1rem;
    }

    .sidebar {
        width: 20rem;
    }

    .controls-panel {
        width: 100%;
    }

    .controls-content {
        padding: 1rem;
    }

    .controls-header {
        padding: 1rem;
    }

    .controls-footer {
        padding: 1rem;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 30;
    display: none;
    backdrop-filter: blur(4px);
}

.overlay.show {
    display: block;
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1rem 2rem 1rem 2rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    color: #f59e0b;
}

.modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    transform: scale(1.05);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 6rem);
}

.modal-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.embed-code-textarea {
    width: 100%;
    height: 20rem;
    padding: 1.5rem;
    border: 2px solid #475569;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 15rem;
    transition: all 0.3s;
}

.embed-code-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.copy-code-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copy-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.copy-code-btn.copied {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.05);
}

.modal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.modal-note i {
    color: #3b82f6;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Modal responsive styles */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal-container {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .embed-code-textarea {
        height: 15rem;
        padding: 1rem;
        font-size: 0.75rem;
    }

    .copy-code-btn {
        position: static;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }

    .code-container {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(71, 85, 105, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
} 