/* CSS Variables */
:root {
    --primary-color: #198754;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

/* Dark Mode Support for Print Modal */
:root {
    --bs-primary: var(--primary-color);
    --bs-secondary: var(--secondary-color);
    --bs-light: var(--light-color);
    --bs-dark: var(--dark-color);
    --bs-white: var(--bg-primary);
    --bs-border-color: var(--border-color);
    --bs-border-color-translucent: var(--shadow-sm);
    --bs-danger: var(--danger-color);
    --preview-bg: var(--bg-secondary);
}

[data-bs-theme="dark"] {
    --bs-light: var(--light-color);
    --bs-dark: var(--dark-color);
    --bs-white: var(--bg-primary);
    --bs-border-color: var(--border-color);
    --bs-border-color-translucent: var(--shadow-sm);
    --preview-bg: var(--bg-secondary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
}

/* Layout Components - ONLY for main layout (index page) */
main {
    height: calc(100vh - 56px);
}

/* Main Layout for Index Page ONLY */
.main-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    position: relative;
    overflow: hidden;
}

.main-layout .top-section {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth cubic-bezier transition */
}

/* Map adjustments based on panel state - Updated for smooth transitions */
.main-layout.panel-expanded .top-section {
    flex: 1;
    height: calc(100vh - 56px - 270px);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-layout.panel-collapsed .top-section {
    flex: 1;
    height: calc(100vh - 56px - 50px);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Map Container for main layout - Updated */
.main-layout .map-container {
    flex: 1;
    position: relative;
    min-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth map transition */
    display: flex;
    flex-direction: column;
}

.main-layout #map {
    flex: 1;
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth map resize */
    z-index: 1;
}

/* Bottom Panel - Updated for smoother transitions */
.main-layout .bottom-panel {
    position: relative;
    background: white;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: auto;
    min-height: 50px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother panel transition */
    transform: translateZ(0);
    /* Hardware acceleration */
    will-change: height, max-height;
    /* Optimize for animations */
}

.main-layout .bottom-panel.collapsed {
    height: 50px;
    max-height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Panel Header - Updated for smooth transitions */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    height: 50px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth header transition */
    transform: translateZ(0);
    /* Hardware acceleration */
}

.panel-header:hover {
    background: #e9ecef;
    /* Subtle hover effect */
    transition: background-color 0.2s ease;
}

.panel-header h6 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Panel Content - Updated for smoother content transitions */
.panel-content {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother content transition */
    opacity: 1;
    visibility: visible;
    min-height: 0;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.main-layout .bottom-panel.collapsed .panel-content {
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    height: 0;
    padding: 0 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    /* Subtle slide effect */
}

/* Toggle Button - Enhanced transitions */
.sticky-toggle-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth button transition */
    border-radius: 4px;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.sticky-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
    transform: scale(1.05);
    /* Subtle scale effect */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-toggle-btn i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth icon rotation */
    transform-origin: center;
}

.main-layout .bottom-panel.collapsed .sticky-toggle-btn i {
    transform: rotate(180deg);
}

/* Content sections - Updated for smooth content transitions */
#noProjectMessage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

#projectAnalysisContent {
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

/* Enhanced fade transitions for content switching */
#noProjectMessage.fade-out,
#projectAnalysisContent.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#noProjectMessage.fade-in,
#projectAnalysisContent.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Summary Components - Enhanced transitions */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chart and metrics - Enhanced transitions */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.analysis-section {
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.section-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.section-header h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header h6 i {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Overview Section */
.overview-stats {
    padding: 0.5rem;
    min-height: 0;
    overflow-y: auto;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-accent);
}

.stat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.8rem;
}

.stat-info {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    text-align: center;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Cost Section */
/* Cost Analysis Section */
.cost-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Cost Top Section */
.cost-top {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2fr;
    gap: 0.5rem;
    min-height: 120px;
    max-height: 120px;
}

/* Cost Cards */
.cost-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cost-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-accent);
}

.cost-card.total {
    background: var(--bg-accent);
    border-color: var(--border-accent);
    justify-content: center;
}

.cost-card-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;
}

.cost-card-header i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.8rem;
}

.cost-card.total .cost-card-header i {
    background: var(--bg-primary);
}

.cost-card-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.cost-card.total .cost-card-value {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Cost Metrics */
.cost-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    min-height: 0;
    height: 90px;
}

.cost-metrics .cost-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cost-metrics .cost-card-header {
    font-size: 0.6rem;
    margin-bottom: 0;
    min-height: 1.2em;
    padding-left: 0.5rem;
}

.cost-metrics .cost-card-value {
    font-size: 0.85rem;
    line-height: 1.2;
    word-break: break-all;
    margin-top: 0.25rem;
    text-align: center;
}

/* Cost Chart */
.cost-chart {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.cost-chart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-accent);
}

.cost-chart canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

/* Network Section */
.network-metrics {
    padding: 0.4rem;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    flex: 1;
    overflow-y: auto;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.network-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.network-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-accent);
}

.network-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 0.8rem;
}

.network-info {
    flex: 1;
    text-align: center;
}

.network-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    text-align: center;
}

.network-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Responsive adjustments - Updated with smooth transitions */
@media (max-width: 992px) {
    .main-layout .bottom-panel {
        max-height: calc(100vh - 56px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-layout.panel-expanded .top-section {
        height: 56px;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .analysis-section {
        min-height: 0;
    }

    .overview-section {
        grid-column: span 2;
    }

    .overview-stats {
        padding: 0.4rem;
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .stat-item {
        padding: 0.4rem;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 0.8rem;
    }

    .cost-breakdown {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .cost-chart {
        height: 180px;
    }

    .cost-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .cost-item {
        padding: 0.4rem;
    }

    .cost-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .cost-value {
        font-size: 0.8rem;
    }

    .network-metrics {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .network-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .network-item {
        padding: 0.4rem;
    }

    .network-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .network-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .main-layout .bottom-panel {
        max-height: calc(100vh - 56px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-layout.panel-expanded .top-section {
        height: 56px;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .panel-header {
        padding: 1rem;
        height: 56px;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .analysis-section {
        min-height: 0;
    }

    .overview-section {
        grid-column: span 1;
    }

    .overview-stats {
        padding: 0.4rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .stat-item {
        padding: 0.4rem;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 0.8rem;
    }

    .cost-breakdown {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .cost-chart {
        height: 160px;
    }

    .cost-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .cost-item {
        padding: 0.4rem;
    }

    .cost-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .cost-value {
        font-size: 0.8rem;
    }

    .network-metrics {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .network-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .network-item {
        padding: 0.4rem;
    }

    .network-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .network-value {
        font-size: 0.8rem;
    }

    .section-header {
        padding: 0.75rem 1rem;
    }

    .section-header h6 {
        font-size: 0.9rem;
    }

    .section-header h6 i {
        font-size: 1rem;
    }
}

/* Projects Page Layout - Separate from main layout */
.projects-container {
    display: flex;
    height: calc(100vh - 56px);
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
}

.projects-list-section {
    flex: 0 0 600px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.project-analysis-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
}

.projects-controls {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    flex: 1;
}

.filter-controls {
    flex: 0 0 150px;
}

.projects-table-container {
    flex: 1;
    overflow-y: auto;
}

.projects-table-container table {
    margin: 0;
}

.projects-table-container th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.no-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Materials Page Layout */
.materials-page {
    height: calc(100vh - 56px);
    overflow: hidden;
}

.materials-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.materials-header {
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-color);
}

.materials-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.materials-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    overflow: hidden;
}

.materials-sidebar {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.material-form-card {
    position: sticky;
    top: 0;
    z-index: 10;
}

.material-form-card .card-header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 11;
    background-color: var(--card-bg, #ffffff);
    border-bottom: 2px solid var(--primary-color);
}

.materials-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.materials-main .card {
    display: flex;
    flex-direction: column;
}

.materials-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.materials-table {
    margin: 0;
}

.materials-table thead.sticky-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg-secondary, #f8f9fa);
}

.materials-table thead th {
    background-color: var(--bg-secondary, #f8f9fa);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.materials-table tbody tr {
    transition: background-color 0.2s;
}

.materials-table tbody tr:hover {
    background-color: var(--bg-tertiary, #f8f9fa);
}

.materials-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
}

.materials-table .btn-group {
    display: flex;
    gap: 0.25rem;
}

.category-list {
    max-height: 300px;
    overflow-y: auto;
}

#materialCount {
    font-size: 0.875rem;
}

.material-form-card .form-control:focus,
.material-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

#noMaterialsMessage {
    color: var(--text-muted);
}

#noMaterialsMessage i {
    opacity: 0.3;
}

.material-form-card.editing .card-header {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

.material-form-card.editing #formIcon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Settings Page */
.settings-page {
    height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-primary, #ffffff);
    min-height: calc(100vh - 56px);
}

.settings-container {
    min-height: 100%;
    padding: 2rem 0 3rem 0;
}

/* Special Page Layouts */
main:not(.main-layout) {
    height: auto;
    min-height: calc(100vh - 56px);
    overflow-y: auto;
}

/* Drawing Palette */
.drawing-palette {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.drawing-palette .palette-header {
    padding: 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.drawing-palette .palette-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawing-palette .palette-content {
    padding: 12px;
    overflow-y: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.drawing-palette .palette-status {
    margin-bottom: 12px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.drawing-palette .materials-library {
    margin-bottom: 16px;
}

.drawing-palette .library-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.drawing-palette .material-category {
    margin-bottom: 4px;
}

.drawing-palette .category-header {
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    user-select: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.drawing-palette .category-header:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.drawing-palette .category-toggle {
    transition: transform 0.2s;
}

.drawing-palette .category-header.expanded .category-toggle {
    transform: rotate(90deg);
}

.drawing-palette .material-count {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.drawing-palette .category-materials {
    padding: 8px;
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 4px;
}

.drawing-palette .category-materials.expanded {
    display: block;
}

.drawing-palette .palette-material-item {
    padding: 8px;
    margin: 4px 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-out;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.drawing-palette .palette-material-item:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

.drawing-palette .palette-material-item.selected {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}




.drawing-palette .drawing-selector {
    margin-bottom: 16px;
}

.drawing-palette .drawing-actions {
    margin-bottom: 16px;
}

.drawing-palette .drawing-instructions {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.map-info-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-size: 11px;
    z-index: 1001;
}

/* Bottom Panel - ONLY for main layout */
.main-layout .bottom-panel {
    position: relative;
    background: white;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: auto;
    /* Changed from fixed height */
    min-height: 50px;
    /* Minimum for header */
    max-height: 320px;
    /* Maximum to prevent too large */
    transition: all 0.3s ease;
}

.main-layout .bottom-panel.collapsed {
    height: 50px;
    max-height: 50px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    height: 50px;
    cursor: pointer;
    user-select: none;
}

.panel-header h6 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1rem;
}

.panel-content {
    flex: 1;
    padding: 1rem 1.5rem;
    overflow: visible;
    /* Changed from auto to visible */
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    min-height: 0;
    /* Allow shrinking */
}

.main-layout .bottom-panel.collapsed .panel-content {
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    height: 0;
    padding: 0 1.5rem;
}

/* Content sections - Updated */
#noProjectMessage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    /* Fixed minimum height */
    text-align: center;
    padding: 2rem;
}

#projectAnalysisContent {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Allow shrinking */
}

#projectAnalysisContent .row {
    margin: 0;
    min-height: 0;
    /* Allow shrinking */
}

/* Summary Components - Updated for no scroll */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    /* Reduced gap */
    margin-bottom: 0.75rem;
    /* Reduced margin */
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Reduced gap */
    padding: 0.5rem;
    /* Reduced padding */
    background: var(--light-color);
    border-radius: 4px;
    /* Smaller radius */
    border: 1px solid var(--border-color);
}

.summary-card i {
    font-size: 16px;
    /* Smaller icon */
    flex-shrink: 0;
}

.summary-info {
    flex: 1;
    min-width: 0;
}

.summary-label {
    font-size: 12px;
    /* Smaller text */
    color: var(--secondary-color);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 12px;
    /* Smaller value */
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1;
}

/* Analysis Components - Updated for compact display */
.section-title {
    font-size: 12px;
    /* Smaller title */
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    /* Reduced margin */
}

.analysis-charts {
    display: flex;
    gap: 0.75rem;
    /* Reduced gap */
    align-items: stretch;
}

.chart-container {
    flex: 0 0 100px;
    /* Smaller chart */
    height: 100px;
    position: relative;
}

.analysis-metrics {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Reduced gap */
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    /* Reduced padding */
    background: var(--light-color);
    border-radius: 3px;
    /* Smaller radius */
    font-size: 11px;
    /* Smaller font */
}

.metric-label {
    color: var(--secondary-color);
    font-size: 14px;
    /* Smaller label */
}

.metric-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
    /* Smaller value */
}

.sticky-toggle-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sticky-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.sticky-toggle-btn i {
    transition: transform 0.3s ease;
}

.main-layout .bottom-panel.collapsed .sticky-toggle-btn i {
    transform: rotate(180deg);
}

/* Cost Display */
.cost-display {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--card-bg, white);
    color: var(--text-primary, #212529);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    min-width: 200px;
    border: 1px solid var(--border-color, #dee2e6);
}

.cost-display h6 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.cost-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 2px solid var(--primary-color, #0d6efd);
}

.cost-label {
    color: var(--text-secondary, #6c757d);
}

.cost-value {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.cost-item:last-child .cost-label,
.cost-item:last-child .cost-value {
    color: var(--text-primary, #212529);
}

.cost-display i {
    color: var(--danger-color);
    margin-right: 5px;
}

.cost-display strong {
    color: var(--danger-color);
    font-size: 18px;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-header {
    padding: 0.75rem;
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-body {
    padding: 0.75rem;
}

/* Tree View */
.tree-view {
    font-size: 13px;
}

.tree-item {
    margin-bottom: 2px;
}

.tree-header,
.tree-subheader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.tree-header {
    background: #e9ecef;
    font-weight: 600;
    border-radius: 4px;
}

.tree-header:hover {
    background: var(--border-color);
}

.tree-subheader {
    background: #f8f9fa;
    padding-left: 1.5rem;
    font-size: 12px;
}

.tree-subheader:hover {
    background: #e9ecef;
}

.tree-subheader.active {
    background: var(--primary-color);
    color: white;
}

.tree-toggle,
.tree-toggle-small {
    transition: transform 0.2s;
    font-size: 10px;
}

.tree-header.collapsed .tree-toggle {
    transform: rotate(-90deg);
}

.tree-content {
    display: none;
}

.tree-content.show {
    display: block;
}

.tree-submenu {
    padding-left: 1rem;
}

.tree-elements {
    max-height: 150px;
    overflow-y: auto;
    margin: 0.25rem 0;
}

/* Material Components */
.material-list {
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.material-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin: 0.25rem 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.material-item:hover {
    background: var(--light-color);
    transform: translateX(2px);
}

.material-item.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.material-item-info {
    flex: 1;
}

.material-item-cost {
    font-weight: 600;
    margin-left: auto;
}

/* Element Components */
.element-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem 0.25rem 2.5rem;
    font-size: 12px;
    transition: background 0.2s;
}

.element-item:hover {
    background: #f8f9fa;
}

.element-item-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.element-item:hover .element-item-actions {
    opacity: 1;
}

.element-popup {
    min-width: 180px;
}

.element-popup-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Project info styling */
.project-info {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.project-info:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-info div {
    margin-bottom: 0.25rem;
}

.project-info div:last-child {
    margin-bottom: 0;
}

.project-info strong {
    color: var(--primary-color);
}

.project-info i {
    margin-right: 0.25rem;
    color: var(--secondary-color);
}

/* Upload Components */
.upload-container {
    position: relative;
}

.logo-upload-area,
.favicon-upload-area {
    width: 100%;
    max-width: 250px;
    height: 120px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
    transition: all 0.3s;
    cursor: pointer;
}

.favicon-upload-area {
    width: 120px;
    height: 120px;
}

.logo-upload-area:hover,
.favicon-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.logo-upload-area.drag-over,
.favicon-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    border-style: solid;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.upload-placeholder p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-placeholder small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
    display: none;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.upload-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.upload-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Preview Components */
.preview-section {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.branding-preview {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.preview-navbar {
    background-color: var(--bg-secondary);
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
}

.navbar-logo-preview {
    height: 24px;
    max-width: 150px;
    object-fit: contain;
}

.preview-navbar span {
    font-size: 1rem;
    font-weight: 500;
}

.preview-tab {
    background-color: var(--bg-primary);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.tab-favicon-preview {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.preview-tab span {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Interactive Elements */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.clickable-row.table-active {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Badge Colors */
.badge.bg-warning.text-dark {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Leaflet overrides */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
}

.leaflet-map-pane {
    z-index: 1;
}

.leaflet-control-container {
    z-index: 1000;
}

.leaflet-draw {
    z-index: 1002 !important;
}

.leaflet-control-zoom {
    z-index: 1002 !important;
}

.leaflet-top.leaflet-right {
    top: 80px !important;
}

.leaflet-bottom.leaflet-left {
    bottom: 120px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.materials-table-container::-webkit-scrollbar {
    width: 8px;
}

.materials-table-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #f1f1f1);
}

.materials-table-container::-webkit-scrollbar-thumb {
    background: var(--text-muted, #888);
    border-radius: 4px;
}

.materials-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary, #555);
}

.materials-sidebar::-webkit-scrollbar {
    width: 6px;
}

.materials-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.materials-sidebar::-webkit-scrollbar-thumb {
    background: var(--text-muted, #888);
    border-radius: 3px;
}

/* Dark Theme Support */
.theme-dark .bottom-panel {
    background-color: var(--card-bg);
    border-top-color: var(--border-color);
}

.theme-dark .panel-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    border-bottom-color: var(--border-color);
}

.theme-dark .panel-content {
    background-color: var(--card-bg);
}

.theme-dark .summary-card,
.theme-dark .metric-item {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color);
}

.theme-dark .cost-display {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.theme-dark .materials-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-dark .material-form-card .sticky-header {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.theme-dark .materials-table thead th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-dark .materials-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.theme-dark .upload-placeholder i {
    color: var(--text-muted);
}

.theme-dark .branding-preview {
    background: var(--card-bg);
}

.theme-dark .preview-navbar {
    background-color: var(--bg-secondary);
}

.theme-dark .preview-tab {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-dark .pagination-container {
    background-color: var(--bg-secondary) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-list-section {
        flex: 0 0 500px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-sidebar {
        flex: 0 0 350px;
    }
}

@media (max-width: 992px) {
    .main-layout .bottom-panel {
        height: 240px;
    }

    .main-layout.panel-expanded .top-section {
        height: calc(100vh - 56px - 240px);
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .analysis-charts {
        flex-direction: column;
        gap: 0.5rem;
    }

    .chart-container {
        flex: 0 0 80px;
        height: 80px;
    }

    .projects-container {
        flex-direction: column;
    }

    .projects-list-section {
        flex: 0 0 auto;
        max-height: 400px;
    }

    .materials-content {
        flex-direction: column;
    }

    .materials-sidebar {
        flex: 0 0 auto;
        max-height: 400px;
        width: 100%;
    }

    .materials-main {
        flex: 1;
        min-height: 400px;
    }

    .material-form-card {
        position: relative;
    }
}

@media (max-width: 768px) {
    .main-layout .sidebar {
        width: 100%;
        position: absolute;
        z-index: 1001;
        height: 60vh;
        bottom: 0;
    }

    .main-layout .bottom-panel {
        height: 200px;
    }

    .main-layout .bottom-panel.collapsed {
        height: 45px;
    }

    .main-layout.panel-expanded .top-section {
        height: calc(100vh - 56px - 200px);
    }

    .main-layout.panel-collapsed .top-section {
        height: calc(100vh - 56px - 45px);
    }

    .panel-header {
        padding: 0.5rem 1rem;
        height: 45px;
    }

    .panel-content {
        padding: 0.75rem 1rem;
    }

    .cost-display {
        bottom: 10px;
        left: 10px;
        min-width: 180px;
        padding: 12px 15px;
    }

    .cost-display h6 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .cost-item {
        font-size: 12px;
    }
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* Customer Marker Styles */
.customer-marker-wrapper {
    position: absolute !important;
    width: 160px !important;
    height: 100px !important;
    pointer-events: none !important;
    margin-left: -80px !important;
    margin-top: -50px !important;
    z-index: 1000 !important;
}

.customer-marker {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: center !important;
}

.customer-marker .marker-icon {
    background: var(--primary-color) !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: 2px solid white !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    margin-bottom: 4px !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(4px) !important;
}

.customer-marker .marker-icon:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 3px 7px rgba(0,0,0,0.3) !important;
}

.customer-marker .marker-icon i {
    font-size: 18px !important;
}

.customer-marker .marker-label {
    background: var(--bg-primary) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    min-width: 120px !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    position: relative !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: var(--text-primary) !important;
    white-space: nowrap !important;
    border: 1px solid var(--border) !important;
    margin-top: 4px !important;
}

.customer-marker .customer-name {
    font-weight: bold !important;
    font-size: 12px !important;
    color: var(--text-primary) !important;
    margin-bottom: 2px !important;
}

.customer-marker .location-name {
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    opacity: 0.9 !important;
}

/* Preview marker style */
.customer-marker.preview .marker-icon {
    background: var(--secondary-color) !important;
    opacity: 0.9 !important;
    border-color: white !important;
    backdrop-filter: blur(4px) !important;
}

.dark-theme .customer-marker .marker-label {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}

.dark-theme .customer-marker .marker-icon {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}

.dark-theme .customer-marker .marker-icon:hover {
    box-shadow: 0 3px 7px rgba(0,0,0,0.4) !important;
}

.customer-popup {
    padding: 8px;
}

.customer-popup h6 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.customer-popup p {
    margin: 4px 0;
    font-size: 12px;
}
