/* Dashboard CSS - CLEAN AND SIMPLE */

/* Page Header */
.page-header {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-text {
    flex: 1;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.page-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.quick-actions-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: fit-content;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    letter-spacing: 0.025em;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-btn.secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.action-btn.tertiary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Page Content */
.page-content {
    padding: 32px;
}

/* Stats Grid - ENHANCED DESIGN */
.stats-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.change-positive {
    color: #10b981;
}

.change-negative {
    color: #ef4444;
}

/* Stat Icons - ENHANCED DESIGN */
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon.projects {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.stat-icon.surveys {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.stat-icon.analytics {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.stat-icon.equipment {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

/* Content Grid - SIMPLE FLEXBOX */
.content-grid {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* Dashboard Grid - ENHANCED DESIGN */
.dashboard-grid {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.map-section {
    flex: 1;
    min-width: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.map-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.charts-section {
    flex: 1;
    min-width: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.charts-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.content-section {
    flex: 1;
    min-width: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.activity-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.activity-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.section-content {
    padding: 28px;
}

.time-filter {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
}

/* Recent Images - ENHANCED DESIGN */
.recent-images {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.images-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
}

.images-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-icon:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.image-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.image-thumb {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-status {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: white;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.completed {
    background: #3b82f6;
}

.status-dot.planning {
    background: #f59e0b;
}

.status-text {
    font-size: 0.75rem;
}

.image-meta {
    padding: 8px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f2937;
}

.image-size {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Charts */
.chart-container {
    margin-bottom: 24px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.chart-placeholder {
    height: 200px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.progress-chart {
    width: 100%;
    height: 100%;
}

/* Project Status */
.project-status {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    min-width: 80px;
}

.status-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.status-fill.active {
    background: #3b82f6;
}

.status-fill.completed {
    background: #10b981;
}

.status-fill.planning {
    background: #f59e0b;
}

.status-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    min-width: 80px;
    text-align: right;
}

.view-all-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Activity */
.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-icon.drone {
    background: #dbeafe;
    color: #1d4ed8;
}

.activity-icon.analytics {
    background: #d1fae5;
    color: #065f46;
}

.activity-icon.project {
    background: #fef3c7;
    color: #92400e;
}

.activity-icon.maintenance {
    background: #e0e7ff;
    color: #4338ca;
}

/* Map - ENHANCED DESIGN */
#map {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

/* Volume Analysis Specific Styles */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.analysis-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.analysis-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tool-btn {
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
}

.tool-btn:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-1px);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.025em;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculation-results {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

.result-item.total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.result-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.result-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.result-item.total .result-value {
    color: #3b82f6;
    font-size: 1.125rem;
}

.calculator-actions {
    display: flex;
    gap: 12px;
}

.calculator-actions .action-btn {
    flex: 1;
    justify-content: center;
}

.chart-filter {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
}

.volume-chart {
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.cut {
    background: #ef4444;
}

.legend-color.fill {
    background: #22c55e;
}

.reports-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.reports-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.report-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.report-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.report-status {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-status.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.report-status.processing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.report-content {
    padding: 24px;
}

.report-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
}

.report-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.report-date,
.report-volume {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

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

.report-actions .action-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 10px 12px;
}

/* Responsive - Volume Analysis */
@media (max-width: 1200px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-actions,
    .report-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .report-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 12px;
    }
}

/* Projects Specific Styles */
.project-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

.filter-tab.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-tab:hover:not(.active) {
    color: #374151;
    background: rgba(255,255,255,0.5);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-btn {
    padding: 10px 16px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.project-status {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-completed {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.status-planning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.project-priority {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-priority.high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.project-priority.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.project-priority.low {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
}

.project-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.project-location,
.project-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.project-progress {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.progress-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-fill.planning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.project-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.team-avatars {
    display: flex;
    gap: 8px;
}

.team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.team-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.project-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-item {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
}

.date-label {
    color: #64748b;
    font-weight: 500;
}

.date-value {
    color: #374151;
    font-weight: 600;
}

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

.project-actions .action-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 10px 12px;
}

/* Responsive - Projects */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .project-meta,
    .project-team {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .project-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-avatars {
        justify-content: center;
    }
}

/* Work Areas Specific Styles */
.work-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.area-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.area-header {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.area-header.quarry {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.area-header.highway {
    background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
}

.area-header.port {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.area-header.complex {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.area-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.status-active {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-completed {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.status-planning {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.area-content {
    padding: 28px;
}

.area-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.025em;
}

.area-location {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

.area-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.area-stat {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.area-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.area-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.area-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.area-team {
    margin-bottom: 24px;
}

.team-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    letter-spacing: 0.025em;
}

.team-avatars {
    display: flex;
    gap: 10px;
}

.team-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.team-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.area-actions {
    display: flex;
    gap: 12px;
}

.area-actions .action-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.875rem;
    padding: 12px 16px;
}

/* Responsive - Work Areas */
@media (max-width: 900px) {
    .work-areas-grid {
        grid-template-columns: 1fr;
    }
    
    .area-stats {
        grid-template-columns: 1fr;
    }
    
    .area-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .area-header {
        height: 150px;
        font-size: 3rem;
    }
    
    .area-content {
        padding: 20px;
    }
}
@media (max-width: 1200px) {
    .stats-grid {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: 100%;
    }
    
    .dashboard-grid {
        flex-direction: column;
    }
    
    .map-section,
    .charts-section {
        min-width: 100%;
    }
}

@media (max-width: 900px) {
    .content-grid {
        flex-direction: column;
    }
    
    .content-section {
        min-width: 100%;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px;
    }

    .header-with-actions {
        flex-direction: column;
        gap: 16px;
    }

    .quick-actions-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .map-section,
    .charts-section {
        min-width: 100%;
    }
    
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .status-label,
    .status-value {
        min-width: auto;
        text-align: left;
    }
}

/* ========================
   3D VIEWER STYLES
   ======================== */

/* 3D Viewer Container */
.viewer-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
}

/* Main Viewport */
.viewport-section {
    flex: 2;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.viewport-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.viewport-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.viewport-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    padding: 8px 12px;
    border: none;
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.viewport-content {
    height: calc(100% - 80px);
    position: relative;
}

/* 3D Scene Placeholder */
.threejs-container {
    width: 100%;
    height: calc(100% - 60px);
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.scene-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 40px;
}

.scene-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.scene-placeholder h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--white);
}

.scene-placeholder p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.scene-grid {
    width: 400px;
    height: 300px;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.grid-svg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.scene-info {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

/* Viewer Navigation */
.viewer-navigation {
    height: 60px;
    padding: 10px 20px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.view-modes {
    display: flex;
    gap: 5px;
    background: var(--background-light);
    padding: 4px;
    border-radius: 8px;
}

.mode-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Side Panel */
.side-panel {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.panel-btn {
    padding: 6px 10px;
    border: none;
    background: var(--white);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.panel-content {
    padding: 20px;
}

/* Model List */
.model-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.model-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.1) 100%);
}

.model-thumbnail {
    width: 48px;
    height: 48px;
    background: var(--background-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.model-info {
    flex: 1;
}

.model-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.model-date,
.model-size {
    font-size: 12px;
    color: var(--text-light);
}

.model-status {
    font-size: 16px;
}

/* Layer Controls */
.layer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.layer-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.layer-item label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.layer-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.layer-color.terrain { background: #10b981; }
.layer-color.buildings { background: #f59e0b; }
.layer-color.equipment { background: #ef4444; }
.layer-color.annotations { background: #8b5cf6; }

.layer-settings {
    padding: 4px 8px;
    border: none;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.layer-settings:hover {
    background: var(--background-light);
}

/* Properties Panel */
.property-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.property-label {
    font-size: 14px;
    color: var(--text-light);
}

.property-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive Design for 3D Viewer */
@media (max-width: 1024px) {
    .viewer-container {
        flex-direction: column;
        height: auto;
    }
    
    .viewport-section {
        height: 500px;
    }
    
    .side-panel {
        max-width: none;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .panel-section {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .viewport-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .viewport-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .scene-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .viewer-navigation {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 15px;
    }
    
    .nav-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* ========================
   MONITORING STYLES
   ======================== */

/* Monitoring Dashboard */
.monitoring-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.section-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

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

.filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Sensor Grid */
.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 24px;
}

.sensor-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sensor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.sensor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.sensor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sensor-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.sensor-location {
    font-size: 12px;
    color: var(--text-light);
}

.sensor-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-active {
    color: #10b981;
    animation: pulse 2s infinite;
}

.status-warning {
    color: #f59e0b;
    animation: pulse 2s infinite;
}

.status-error {
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sensor-reading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reading-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.reading-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.trend-up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.trend-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.trend-stable {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.sensor-chart {
    height: 60px;
    margin-bottom: 16px;
    background: var(--background-light);
    border-radius: 8px;
    padding: 8px;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

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

.sensor-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sensor-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Alerts List */
.alerts-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: #3b82f6;
}

.alert-success {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: #ef4444;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.alert-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.alert-time {
    font-size: 11px;
    color: var(--text-light);
    font-style: italic;
}

.alert-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.alert-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 24px;
}

.performance-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.performance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.performance-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.performance-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.performance-chart {
    height: 100px;
    background: var(--background-light);
    border-radius: 8px;
    padding: 8px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* Responsive Design for Monitoring */
@media (max-width: 1024px) {
    .sensor-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
        padding: 16px;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .sensor-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .alert-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .sensor-reading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reading-value {
        font-size: 20px;
    }
}

/* ========================
   DRONE SURVEYS STYLES
   ======================== */

/* Survey Filters */
.survey-filters {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.filter-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    min-width: 160px;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Survey Grid */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.survey-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.survey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
}

.survey-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-color);
}

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

.survey-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.survey-date {
    font-size: 12px;
    color: var(--text-light);
}

.survey-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    animation: pulse 2s infinite;
}

.status-scheduled {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.survey-details {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.survey-preview {
    padding: 0 24px 20px;
}

.preview-image {
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background-light);
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.preview-placeholder.processing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: var(--primary-color);
}

.preview-placeholder.scheduled {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
}

.preview-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.preview-text {
    font-size: 12px;
    font-weight: 600;
}

.survey-actions {
    padding: 0 24px 20px;
    display: flex;
    gap: 8px;
}

.survey-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.survey-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.survey-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.survey-btn.secondary {
    background: var(--white);
    color: var(--text-dark);
}

.survey-btn.secondary:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

.survey-btn.tertiary {
    background: var(--background-light);
    color: var(--text-light);
}

.survey-btn.tertiary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.survey-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.survey-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.survey-progress {
    padding: 0 24px 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.progress-value {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.scheduled {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Analytics Section */
.analytics-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.analytics-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.analytics-header {
    margin-bottom: 20px;
}

.analytics-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.analytics-chart {
    height: 200px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* Responsive Design for Drone Surveys */
@media (max-width: 1024px) {
    .survey-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-controls {
        gap: 12px;
    }
    
    .filter-select {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .survey-filters {
        padding: 16px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .survey-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .survey-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .survey-status {
        align-self: flex-end;
    }
    
    .survey-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .survey-btn {
        width: 100%;
    }
    
    .analytics-grid {
        padding: 16px;
        gap: 16px;
    }
    
    .analytics-chart {
        height: 150px;
    }
}

/* ========================
   PAYMENT STYLES
   ======================== */

/* Payment Dashboard */
.payment-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Transaction List */
.transactions-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.transaction-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.transaction-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.transaction-date,
.transaction-client {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    animation: pulse 2s infinite;
}

.status-overdue {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.transaction-amount {
    text-align: right;
}

.amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.amount-method {
    font-size: 12px;
    color: var(--text-light);
}

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

.transaction-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.transaction-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Invoice Grid */
.invoice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px;
}

.invoice-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.invoice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.invoice-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.invoice-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

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

.invoice-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.invoice-service,
.invoice-date,
.invoice-due {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.invoice-amount {
    margin: 16px 0;
}

.amount-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.amount-status {
    font-size: 12px;
    color: var(--text-light);
}

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

.invoice-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.invoice-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================
   REPORTS STYLES
   ======================== */

/* Report Categories */
.report-categories {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.category-filters {
    display: flex;
    gap: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-header-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 12px;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.category-description {
    font-size: 12px;
    color: var(--text-light);
}

.category-stats {
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.category-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.category-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-btn.secondary {
    background: var(--white);
    color: var(--text-dark);
}

.category-btn.tertiary {
    background: var(--background-light);
    color: var(--text-light);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Reports List */
.recent-reports {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
}

.reports-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.report-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.report-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 12px;
}

.report-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.report-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.report-meta {
    display: flex;
    gap: 16px;
}

.report-date,
.report-size,
.report-type {
    font-size: 11px;
    color: var(--text-light);
}

.report-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.status-generating {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    animation: pulse 2s infinite;
}

.status-scheduled {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

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

.report-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.report-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Report Analytics */
.report-analytics {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ========================
   EQUIPMENT STYLES
   ======================== */

/* Equipment Filters */
.equipment-filters {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.equipment-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
}

.equipment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.equipment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.equipment-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.equipment-id,
.equipment-location {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.equipment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

.status-maintenance {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.equipment-details {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
}

.detail-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.equipment-metrics {
    margin-bottom: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-light);
    min-width: 80px;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-fill.maintenance {
    background: #f59e0b;
}

.metric-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 40px;
    text-align: right;
}

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

.equipment-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.equipment-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.equipment-btn.secondary {
    background: var(--white);
    color: var(--text-dark);
}

.equipment-btn.tertiary {
    background: var(--background-light);
    color: var(--text-light);
}

.equipment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Maintenance Schedule */
.maintenance-schedule {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
}

.schedule-timeline {
    padding: 24px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.timeline-date {
    text-align: center;
    min-width: 60px;
}

.date-day {
    font-size: 12px;
    color: var(--text-light);
}

.date-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.timeline-meta {
    display: flex;
    gap: 16px;
}

.timeline-time,
.timeline-tech {
    font-size: 11px;
    color: var(--text-light);
}

.timeline-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Equipment Analytics */
.equipment-analytics {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* ========================
   SURVEY UPLOAD STYLES
   ======================== */

/* Upload Interface */
.upload-interface {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Upload Area */
.upload-area {
    padding: 24px;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: var(--background-light);
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.upload-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.upload-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.upload-limits {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.upload-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
}

.upload-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.upload-btn.secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.supported-formats {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.format-tag {
    padding: 4px 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}

/* Upload Configuration */
.upload-config {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.config-section {
    margin-bottom: 24px;
}

.config-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.config-input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.config-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.config-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.config-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.config-btn.secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.config-btn.tertiary {
    background: var(--background-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Upload Queue */
.upload-queue {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.queue-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.queue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.queue-item.completed {
    border-left: 4px solid #10b981;
}

.queue-item.failed {
    border-left: 4px solid #ef4444;
}

.queue-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.queue-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 12px;
}

.queue-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.queue-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.queue-meta {
    display: flex;
    gap: 16px;
}

.queue-project,
.queue-time {
    font-size: 11px;
    color: var(--text-light);
}

.queue-progress {
    min-width: 200px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.progress-percentage {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.progress-error {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.processing {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    animation: pulse 2s infinite;
}

.progress-fill.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-fill.failed {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-speed,
.progress-eta {
    font-size: 11px;
    color: var(--text-light);
}

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

.queue-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.queue-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Upload Analytics */
.upload-analytics {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Responsive Design for All Pages */
@media (max-width: 1024px) {
    .transaction-item,
    .queue-item {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .invoice-grid,
    .category-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .upload-zone {
        padding: 40px 20px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .transaction-actions,
    .queue-actions,
    .invoice-actions,
    .category-actions,
    .equipment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .upload-actions,
    .config-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .upload-title {
        font-size: 20px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
}

/* ========================
   SETTINGS STYLES
   ======================== */

/* Settings Dashboard */
.settings-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Settings Categories */
.settings-categories {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.category-options {
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.option-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.option-label input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.option-label input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Quick Settings */
.quick-settings {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.quick-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.quick-setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--background-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quick-setting-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.setting-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    color: var(--primary-color);
}

.setting-details {
    flex: 1;
}

.setting-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.setting-details p {
    font-size: 12px;
    color: var(--text-light);
}

.setting-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* System Information */
.system-info {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.info-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
}

.info-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.storage-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.save-indicator.show {
    transform: translateX(0);
}

/* ========================
   PROFILE STYLES
   ======================== */

/* Profile Dashboard */
.profile-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Profile Overview */
.profile-overview {
    margin-bottom: 30px;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.avatar-upload {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.avatar-upload:hover {
    background: white;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 18px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.profile-department {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.join-date {
    font-size: 12px;
    opacity: 0.8;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.profile-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.profile-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.profile-btn.secondary {
    background: transparent;
    color: white;
}

.profile-btn.tertiary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.profile-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* Personal Information */
.personal-info {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.info-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

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

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input:read-only {
    background: var(--background-light);
    color: var(--text-light);
}

/* Professional Details */
.professional-details {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.detail-card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-action {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-action:hover {
    background: #1e40af;
    transform: scale(1.1);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
}

.detail-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Qualifications */
.qualification-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.qualification-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    color: var(--primary-color);
}

.qualification-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.qualification-details p {
    font-size: 12px;
    color: var(--text-light);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.skill-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 4px;
    transition: width 1s ease;
}

.skill-level {
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-time {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.activity-description {
    font-size: 12px;
    color: var(--text-dark);
}

/* Account Security */
.account-security {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.security-card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.security-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.security-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.security-content {
    margin-bottom: 16px;
}

.security-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}

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

.security-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.security-btn.primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.security-btn.secondary {
    background: var(--white);
    color: var(--text-dark);
}

.security-btn.tertiary {
    background: var(--background-light);
    color: var(--text-light);
}

.security-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Preferences */
.preferences {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 24px;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.preference-group {
    background: var(--background-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.preference-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.preference-details strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.preference-details p {
    font-size: 12px;
    color: var(--text-light);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.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: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

/* Responsive Design for Settings and Profile */
@media (max-width: 1024px) {
    .form-group.span-2 {
        grid-column: span 1;
    }
    
    .form-grid,
    .quick-settings-grid,
    .details-grid,
    .preferences-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .profile-actions,
    .security-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .skill-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .skill-name,
    .skill-level {
        text-align: left;
    }
    
    .preference-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-title {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}
