/* Root Variables */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --purple: #8b5cf6;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon {
    width: 28px;
    height: 28px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Update Button */
.btn-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-left: auto;
}

.btn-update:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-update:active {
    transform: translateY(0);
}

.btn-update svg {
    width: 20px;
    height: 20px;
}

.btn-update-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .btn-update-text {
        display: none;
    }
    
    .btn-update {
        padding: 0.5rem;
    }
}

/* App Container */
.app-container {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 0;
    transition: var(--transition);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

.menu-item:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Filter Header */
.filter-header {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
}

.filter-select {
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-reset {
    padding: 0.625rem 1.25rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
}

.btn-reset:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* View Containers */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.kpi-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.kpi-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.kpi-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.kpi-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.kpi-value-sm {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* Timeline View */
.timeline-header {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.timeline-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.btn-control {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-control:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-control svg {
    width: 20px;
    height: 20px;
}

.period-display {
    font-size: 1.5rem;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--primary);
    color: var(--white);
}

.timeline-kpi {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.timeline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

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

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.breakdown-item {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.breakdown-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.breakdown-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

/* Organigram */
.view-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.organigram-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    min-height: 500px;
}

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

.dept-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dept-header:hover {
    transform: translateX(4px);
}

.dept-total {
    font-size: 1rem;
    opacity: 0.9;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.section-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
}

.section-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.section-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-total {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.machines-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.machine-item {
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.machine-item:hover {
    background: #dbeafe;
    transform: translateX(4px);
}

.machine-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.machine-cost {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 1.5rem;
}

.machine-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.info-item span:not(.info-label) {
    font-weight: 600;
    color: var(--dark);
}

.highlight {
    color: var(--primary) !important;
    font-size: 1.25rem !important;
}

/* Table */
.table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--primary);
    color: var(--white);
}

.data-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
    background: var(--light-gray);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 1.125rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 99;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .timeline-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .period-display {
        order: -1;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

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

/* Data Management View */
.data-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.data-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}

.data-card:hover {
    box-shadow: var(--shadow-lg);
}

.data-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.data-icon {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius);
}

.data-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.data-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Export Options */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.data-select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.data-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.btn-export {
    flex: 1;
    min-width: 180px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-export svg {
    width: 20px;
    height: 20px;
}

.btn-export.csv {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: var(--white);
}

.btn-export.csv:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-export.excel {
    background: linear-gradient(135deg, #10b981, #047857);
    color: var(--white);
}

.btn-export.excel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.export-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    color: var(--gray);
}

/* Import Area */
.import-area {
    margin: 1.5rem 0;
}

.drop-zone {
    border: 3px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    background: var(--light-gray);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--gray);
}

.drop-text {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.btn-select-file {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.btn-select-file:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.drop-hint {
    display: block;
    color: var(--gray);
    font-size: 0.875rem;
}

.import-options {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.import-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease;
}

.import-status.success {
    background: #d1fae5;
    border-left: 4px solid var(--secondary);
}

.import-status.error {
    background: #fee2e2;
    border-left: 4px solid var(--danger);
}

.import-status.warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
}

.status-message {
    color: var(--dark);
    font-weight: 500;
}

/* Print Styles */
@media print {
    .navbar, .sidebar, .filter-header, .btn-control, .menu-toggle {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .chart-card {
        page-break-inside: avoid;
    }
}

/* Production Lines Configuration View */
.config-header {
    margin-bottom: 20px;
}

.view-description {
    color: #666;
    margin: 10px 0 20px;
    font-size: 1rem;
}

.config-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.machine-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.machine-config-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
    background: white;
}

.machine-config-item:hover {
    background: #f5f5f5;
    border-color: var(--primary);
}

.machine-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.machine-label {
    cursor: pointer;
    user-select: none;
    flex: 1;
    font-size: 0.95rem;
}

/* Tree View Styles for Hierarchies */
.hierarchy-tree {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tree-node {
    margin: 8px 0;
}

.tree-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tree-header:hover {
    background: #e9ecef;
}

.tree-node.department .tree-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
}

.tree-node.machine .tree-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 600;
}

.tree-node.section .tree-header {
    background: #e3f2fd;
    color: #1976d2;
}

.tree-toggle {
    min-width: 20px;
    margin-right: 10px;
    font-size: 14px;
    transition: transform 0.2s;
    font-weight: bold;
}

.tree-label {
    flex: 1;
    font-size: 0.95rem;
}

.tree-subtitle {
    font-size: 0.85em;
    opacity: 0.8;
    font-weight: normal;
    margin-left: 5px;
}

.tree-value {
    font-weight: bold;
    margin-left: 10px;
    font-size: 0.95rem;
}

.tree-content {
    margin-left: 20px;
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.tree-content.hidden {
    display: none;
}

/* Analysis Controls */
.analysis-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.analysis-controls h2 {
    margin: 0;
    font-size: 1.5rem;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    line-height: 1.5;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

.alert-info a {
    color: #1565c0;
    text-decoration: underline;
    font-weight: 500;
}

.alert-info a:hover {
    color: #0d47a1;
}

/* Details View */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.details-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

#detailsCount {
    color: var(--gray);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

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

/* Button Styles */
.btn-primary {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--gray);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
