/* Grid Network Control - Premium Dashboard Stylesheet */
/* Matching Chaart UI Design */

:root {
    /* Background Colors - Light Beige Theme */
    --bg-beige: #F7F5F3;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-light: #D1D5DB;
    
    /* Project Card Colors (from image) */
    --card-purple: #8B5CF6;
    --card-teal: #14B8A6;
    --card-orange: #FB923C;
    --card-green: #10B981;
    
    /* Accent Colors */
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    
    /* Border & Divider */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Shadows - Subtle like image */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #F7F5F3 !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F7F5F3 !important;
    color: #1F2937 !important;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Main Dashboard Container - White Panel */
.dashboard-container {
    display: block;
    min-height: 100vh;
    background-color: #F7F5F3 !important;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-panel {
    background: #FFFFFF !important;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem;
    min-height: calc(100vh - 4rem);
    width: 100%;
    align-items: flex-start;
    flex-wrap: nowrap !important;
    position: relative;
}

/* Left Sidebar */
.dashboard-sidebar {
    width: 240px;
    background: transparent !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    flex-shrink: 0;
    order: 1;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.sidebar-logo i {
    color: #8B5CF6 !important;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #FFFFFF !important;
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #14B8A6 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.profile-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-hours {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.nav-item:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.nav-item.active {
    background: #8B5CF6 !important;
    color: white !important;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Menu Groups */
.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.nav-group-header:hover {
    background: var(--border-light);
}

.nav-group-header.active-parent {
    color: var(--card-purple);
    font-weight: 600;
}

.nav-group-header .nav-group-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-group-header:hover .nav-group-arrow {
    opacity: 1;
}

.nav-group-header .nav-group-arrow.expanded {
    transform: rotate(180deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0.25rem;
    padding-left: 0;
}

.nav-submenu.expanded {
    max-height: 1000px;
}

.nav-subitem {
    padding-left: 3rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    margin-bottom: 0.125rem;
    border-radius: var(--radius-sm);
    opacity: 0.85;
}

.nav-subitem:hover {
    opacity: 1;
    background: var(--border-light);
}

.nav-subitem.active {
    opacity: 1;
    background: rgba(139, 92, 246, 0.15) !important;
    color: var(--card-purple) !important;
    font-weight: 500;
    border-left: 3px solid var(--card-purple);
    padding-left: calc(3rem - 3px) !important;
}

.nav-subitem i {
    font-size: 0.875rem;
    width: 18px;
}

/* Main Content Area */
.dashboard-main {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    min-width: 0;
    order: 2;
    overflow-x: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-header .date {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.search-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.search-icon:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #8B5CF6 !important;
    color: white !important;
}

.btn-primary:hover {
    background: #7C3AED;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Project Cards - Color Coded */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.project-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-card.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    color: white !important;
}

.project-card.purple .project-card-title,
.project-card.purple .project-card-stats {
    color: white !important;
}

.project-card.teal {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
    color: white !important;
}

.project-card.teal .project-card-title,
.project-card.teal .project-card-stats {
    color: white !important;
}

.project-card.orange {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%) !important;
    color: white !important;
}

.project-card.orange .project-card-title,
.project-card.orange .project-card-stats {
    color: white !important;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.project-card-stats {
    font-size: 0.875rem;
    opacity: 0.9;
}

.project-progress {
    margin-top: var(--spacing-md);
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: var(--radius-full);
    transition: width 0.3s;
}

/* Tasks Section */
.tasks-section {
    background: #FFFFFF !important;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: var(--spacing-lg);
}

.tasks-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.task-item:last-child {
    border-bottom: none;
}

.task-indicator {
    width: 4px;
    height: 40px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.task-indicator.purple {
    background: #8B5CF6 !important;
}

.task-indicator.teal {
    background: #14B8A6 !important;
}

.task-indicator.orange {
    background: #FB923C !important;
}

.task-indicator.green {
    background: #10B981 !important;
}

.event-indicator.teal {
    background: var(--card-teal);
}

.task-content {
    flex: 1;
}

.task-project {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.task-name {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox.checked {
    background: var(--card-green);
    border-color: var(--card-green);
    color: white;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: #FFFFFF !important;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.stat-card.new-widget {
    background: var(--border-light);
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.stat-card.new-widget:hover {
    border-color: var(--card-purple);
    background: rgba(139, 92, 246, 0.05);
}

.stat-card.new-widget i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

/* Right Sidebar - Calendar */
.calendar-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    background: transparent !important;
    padding: 0;
    flex: 0 0 280px !important;
    display: flex !important;
    flex-direction: column;
    gap: var(--spacing-md);
    order: 3 !important;
    align-self: flex-start;
    height: fit-content;
    position: sticky;
    top: 2rem;
    margin-left: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.calendar-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-notification {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
}

.calendar-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.calendar-event {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #FFFFFF !important;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.event-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 60px;
}

.event-title {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.event-indicator {
    width: 4px;
    height: 100%;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.event-indicator.orange {
    background: #FB923C !important;
}

.event-indicator.teal {
    background: #14B8A6 !important;
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.dashboard-section h2 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    color: var(--text-primary);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #F7F5F3 !important;
}

.auth-box {
    background: #FFFFFF !important;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.auth-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1F2937 !important;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
}

.auth-subtitle {
    color: #6B7280 !important;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.9375rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #6B7280 !important;
    font-size: 0.9375rem;
}

.auth-footer a {
    color: #8B5CF6 !important;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: #1F2937 !important;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: #FFFFFF;
    color: #1F2937;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Tables */
.table-container {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: transparent;
}

.data-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

.data-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9375rem;
}

.data-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-warning {
    background: rgba(251, 146, 60, 0.1);
    color: #C2410C;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-white);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1400px) {
    .dashboard-container {
        padding: 1.5rem;
    }
    
    .calendar-sidebar {
        width: 260px;
    }
}

@media (max-width: 1200px) {
    .calendar-sidebar {
        display: none;
    }
    
    .dashboard-main {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-panel {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .project-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .auth-box h1 {
        font-size: 1.75rem;
    }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #F7F5F3 !important;
}

.auth-box {
    background: #FFFFFF !important;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.auth-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1F2937;
    font-weight: 700;
    text-align: center;
}

.auth-subtitle {
    color: #6B7280;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.9375rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.9375rem;
}

.auth-footer a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* Landbook Builder Styles */
.landbook-builder {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.builder-main {
    flex: 1;
    min-width: 0;
}

.builder-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.builder-sidebar h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.sections-container {
    min-height: 400px;
    padding: 1rem;
    background: var(--bg-beige);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.sections-container.drag-over {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.sections-container .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.section-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.section-item:hover {
    box-shadow: var(--shadow-md);
}

.section-item.dragging {
    opacity: 0.5;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.section-handle {
    cursor: move;
    color: var(--text-muted);
    padding: 0.25rem;
}

.section-handle:hover {
    color: var(--text-primary);
}

.section-info {
    flex: 1;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-beige);
    color: var(--text-primary);
}

.section-preview {
    padding: 1rem;
}

.components-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: move;
    transition: all 0.2s;
}

.component-item:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.component-item i {
    color: var(--accent-purple);
    font-size: 1.25rem;
}

.component-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.color-scheme-picker {
    margin-top: 1rem;
}

.color-scheme-picker .form-group {
    margin-bottom: 1rem;
}

.color-picker {
    width: 100%;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}
