/* AetherCRM Stylesheet - Premium Light Theme (Dark Blue & Orange Accents) */

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-blue: #1e3a8a;       /* Dark Blue */
    --accent-orange: #f97316;     /* Orange */
    --accent-orange-dark: #ea580c;
    --accent-indigo: #3b82f6;
    --accent-amber: #f97316;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.2s ease-in-out;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation - Premium Light Slate with Dark Blue & Orange highlights */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--accent-blue);
}

.logo-accent {
    color: var(--accent-orange);
}

.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.sidebar-menu {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.menu-item svg {
    margin-right: 14px;
    width: 20px;
    height: 20px;
}

.menu-item:hover {
    color: var(--accent-blue);
    background: #f1f5f9;
}

.menu-item.active {
    color: var(--accent-blue);
    background: rgba(30, 58, 138, 0.07);
    border-left: 3px solid var(--accent-orange);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-avatar-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
    margin-left: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

/* Topbar Header & Navigation Bar */
.topbar {
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.topbar-brand-and-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.topbar-brand-and-nav .logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--accent-blue);
    white-space: nowrap;
    margin-right: 12px;
}

.top-nav-menu {
    flex: 1;
    width: 100%;
}

.top-nav-menu ul {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    width: 100%;
}

.top-nav-menu .menu-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.top-nav-menu .menu-item svg {
    margin-right: 7px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.top-nav-menu .menu-item:hover {
    color: var(--accent-blue);
    background: #f1f5f9;
}

.top-nav-menu .menu-item.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.25);
    border-left: none !important;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 10px 16px 10px 42px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.icon-search-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.notification-bell:hover {
    color: var(--accent-blue);
    background: #f1f5f9;
}

.notification-bell .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-orange);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: none;
    overflow: hidden;
    z-index: 120;
}

.notification-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-blue);
}

.dropdown-list {
    max-height: 280px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: #f8fafc;
}

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

.notification-item p {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-item span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.quick-actions {
    display: flex;
    gap: 8px;
}

/* Searchable dropdowns */
.searchable-select-wrapper {
    position: relative;
}

.searchable-select-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.searchable-select-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.searchable-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text-primary);
}

.searchable-option:hover {
    background: rgba(30, 58, 138, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.btn-primary:hover {
    background: var(--accent-blue);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--border-hover);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-muted {
    background: transparent;
    color: var(--text-secondary);
}

.btn-muted:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
}

.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.icon-btn {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Viewport Section */
.viewport {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* Typography & Layout elements */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.view-title h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.view-title p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Premium White Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Metrics Dashboard Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-blue {
    background: rgba(30, 58, 138, 0.08);
    color: var(--accent-blue);
}

.icon-teal {
    background: rgba(13, 148, 136, 0.08);
    color: var(--accent-teal);
}

.icon-indigo {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-indigo);
}

.icon-amber {
    background: rgba(249, 115, 22, 0.08);
    color: var(--accent-orange);
}

.metric-details {
    flex: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Dashboard Two-Column Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new { background: rgba(30, 58, 138, 0.08); color: var(--accent-blue); }
.badge-contacted { background: rgba(59, 130, 246, 0.08); color: var(--accent-indigo); }
.badge-negotiating { background: rgba(249, 115, 22, 0.08); color: var(--accent-orange); }
.badge-closed { background: rgba(16, 185, 129, 0.08); color: var(--accent-green); }
.badge-lost { background: rgba(239, 68, 68, 0.08); color: var(--accent-red); }

.badge-ready { background: rgba(16, 185, 129, 0.08); color: var(--accent-green); }
.badge-launching { background: rgba(30, 58, 138, 0.08); color: var(--accent-blue); }
.badge-construction { background: rgba(249, 115, 22, 0.08); color: var(--accent-orange); }

/* Filter & Search Section */
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-filter-input {
    min-width: 240px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.search-filter-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.filter-select {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--accent-blue);
}

/* Leads Table list */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.custom-table th {
    background: #f8fafc;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.custom-table tbody tr {
    transition: var(--transition);
}

.custom-table tbody tr:hover {
    background: #f8fafc;
}

.lead-name-cell {
    font-weight: 600;
    color: var(--accent-blue);
}

.lead-contact-info {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.actions-cell {
    display: flex;
    gap: 6px;
}

/* Action button icons */
.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: var(--accent-blue);
    background: #f1f5f9;
}

.action-btn.delete:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.08);
}

/* Project Explorer grids */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-builder-tag {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 4px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.project-amenities-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.amenity-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Price List Styling */
.price-list-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
}

.price-list-table th,
.price-list-table td {
    padding: 8px 12px;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.price-list-table th {
    color: var(--text-secondary);
    font-weight: 600;
    background: #f8fafc;
}

.price-total-highlight {
    font-weight: 700;
    color: var(--accent-orange);
}

/* Telecalling Split Screen Dashboard */
.telecalling-split-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    height: calc(100vh - var(--header-height) - 64px);
    overflow: hidden;
}

@media (max-width: 950px) {
    .telecalling-split-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
}

.telecaller-left-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}

.telecaller-right-pane {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 4px;
}

.lead-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.lead-selector-card:hover {
    border-color: var(--accent-blue);
    background: #f8fafc;
}

.lead-selector-card.active {
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.05);
}

.lead-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.lead-selector-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-blue);
}

/* Split Pane sub-tabs */
.telecaller-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    gap: 4px;
}

.telecaller-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.telecaller-tab-btn:hover {
    color: var(--accent-blue);
}

.telecaller-tab-btn.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

/* Timelines (Logs) */
.timeline {
    margin-top: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid var(--bg-primary);
}

.timeline-marker.marker-call { background: var(--accent-blue); }
.timeline-marker.marker-email { background: var(--accent-indigo); }
.timeline-marker.marker-meeting { background: var(--accent-green); }
.timeline-marker.marker-note { background: var(--text-secondary); }

.timeline-content {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.timeline-type {
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.timeline-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Modals - Clean White */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: scaleUp 0.2s ease-out;
    overflow: hidden;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-blue);
    background: #f1f5f9;
}

.modal-box form {
    overflow-y: auto;
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.span-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.05);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal;
}

.checkbox-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: none !important;
    letter-spacing: normal;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Toast Banners */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border-left: 4px solid var(--accent-blue);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    max-width: 380px;
    animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.88rem;
    font-weight: 500;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.info { border-left-color: var(--accent-orange); }

/* Custom CSS visual charts */
.chart-bar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chart-bar-track {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-blue);
    width: 0%;
    transition: width 1s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.97); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Toggle Switch Styles for Flats List & Priority */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 22px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-green);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Red/Green Button Variations */
.btn-red {
    background: #e11d48;
    color: white;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.btn-red:hover {
    background: #be123c;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-green {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-green:hover {
    background: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Form Specs Header Styling */
.spec-section-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Priority toggle row inside Unit Form */
.priority-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    width: fit-content;
}

.star-icon {
    width: 18px;
    height: 18px;
    fill: #cbd5e1;
    transition: var(--transition);
}

.priority-toggle-container.active .star-icon {
    fill: var(--accent-orange);
}

/* Custom Table for flat listings */
.flat-detail-table th {
    background-color: var(--accent-blue);
    color: white !important;
    font-size: 0.8rem !important;
    padding: 12px 14px !important;
}

.flat-detail-table td {
    padding: 12px 14px !important;
    vertical-align: middle;
}

/* Responsive Overrides */
@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-close-btn {
        display: flex;
    }
    
    .topbar {
        padding: 0 16px;
    }
    
    .viewport {
        padding: 16px;
    }
    
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .quick-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
