/* css/evidence-map.css */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');

* {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f7fb;
}

/* custom navy/teal palette */
.bg-navy-sidebar { 
    background-color: #0c2538;
}

.bg-navy-deep {
    background-color: #0b1f33;
}

.text-teal-logo {
    color: #5ee0d0;
}

.border-teal-light {
    border-color: #2aa79b33;
}

/* hover effect for nav items */
.hover-nav:hover {
    background-color: #1f4e5e;
    color: white;
}

/* active navigation item */
.active-nav {
    background-color: #1a4450;
    border-left: 4px solid #2aa79b;
}

/* stat card styles */
.stat-card {
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
    background-color: white;
    border-radius: 0.75rem;
}

.stat-card:hover {
    box-shadow: 0 8px 20px -8px rgba(18, 79, 86, 0.15);
    transform: translateY(-2px);
}

/* Category badges */
.badge-instruction {
    background-color: #dbeafe;
    color: #1d4ed8;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-research {
    background-color: #dcfce7;
    color: #15803d;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-extension {
    background-color: #fef3c7;
    color: #b45309;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-employment {
    background-color: #f3e8ff;
    color: #7e22ce;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Status badges */
.badge-status-complete {
    background-color: #e3f7ec;
    color: #0f7b4b;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 500;
}

.badge-status-partial {
    background-color: #fef9e7;
    color: #b78103;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Standard badges */
.standard-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 500;
}

.standard-complete {
    background-color: #e3f7ec;
    color: #0f7b4b;
}

.standard-partial {
    background-color: #fef9e7;
    color: #b78103;
}

.standard-missing {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* dashboard background */
.bg-dashboard-bg {
    background-color: #f4f7fb;
}

/* utility classes */
.text-teal-300 { color: #5eead4; }
.text-teal-300\/70 { color: rgba(94, 234, 212, 0.7); }
.bg-teal-800\/40 { background-color: rgba(17, 94, 89, 0.4); }
.border-teal-400 { border-color: #2dd4bf; }

/* transitions */
.transition, .transition-colors {
    transition: all 0.2s ease;
}

/* focus states */
input:focus, select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px #14b8a6;
}

/* button styling */
.bg-teal-700 {
    background-color: #0f766e;
}
.bg-teal-700:hover {
    background-color: #115e59;
}

/* tab styling */
#mapTabs a.active-tab {
    color: #0f766e;
    border-bottom-color: #0f766e;
}

/* department card */
.department-card {
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
}

.department-card:hover {
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

/* standards grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

/* standard item */
.standard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.standard-item:hover {
    background-color: #f3f4f6;
}

.standard-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.standard-status {
    font-size: 0.7rem;
}

/* clause item */
.clause-item {
    transition: all 0.2s ease;
}
.clause-item:hover {
    background-color: #f9fafb;
}

/* view clause button */
.view-clause-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}
.view-clause-btn:hover {
    background-color: #f0fdfa;
}

/* mobile header spacer */
.mobile-header-spacer {
    height: 60px;
    width: 100%;
}

/* Progress bar */
.progress-bar {
    transition: width 0.3s ease;
}

/* Department badge */
.dept-badge {
    background-color: #e0e7ff;
    color: #4338ca;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Expand/Collapse button */
.expand-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.expand-btn:hover {
    background-color: #f3f4f6;
}

/* Rotate animation for expand icon */
.rotate-180 {
    transform: rotate(180deg);
}

/* Standards section */
.standards-section {
    border-top: 1px solid #e5e7eb;
    background-color: #fafafa;
}

/* ============================================ */
/* MODAL STYLES */
/* ============================================ */
#standardsModal, #docDetailsModal {
    backdrop-filter: blur(2px);
}

#standardsModalContent, #docDetailsContent {
    scrollbar-width: thin;
}

#standardsModalContent::-webkit-scrollbar,
#docDetailsContent::-webkit-scrollbar {
    width: 6px;
}

#standardsModalContent::-webkit-scrollbar-track,
#docDetailsContent::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

#standardsModalContent::-webkit-scrollbar-thumb,
#docDetailsContent::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 10px;
}

.detail-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-label {
    width: 35%;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.detail-value {
    width: 65%;
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 500;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Sidebar - Mobile Responsive */
@media (max-width: 768px) {
    .w-72 {
        width: 100%;
        max-width: 280px;
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .w-72.open { left: 0; }
    main { width: 100%; margin-left: 0; }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 1001;
        background: #0c2538;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 1.25rem;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .sidebar-overlay.active { display: block; }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .sidebar-overlay { display: none !important; }
    .w-72 { position: relative; left: 0 !important; }
    .mobile-header-spacer { display: none; }
}

/* Cards responsive */
@media (max-width: 640px) {
    .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    .stat-card { padding: 1rem; }
    h1 { font-size: 1.5rem; }
}

/* Filter bar responsive */
@media (max-width: 768px) {
    .flex-wrap { flex-direction: column; }
    select, .flex-1 input { width: 100%; }
}

/* Header responsive */
@media (max-width: 640px) {
    h1 { font-size: 1.5rem; }
    .text-sm.text-gray-500.mt-1 { font-size: 0.75rem; }
}

/* Tabs responsive */
@media (max-width: 640px) {
    #mapTabs li a { padding: 0.5rem 0.75rem; font-size: 0.7rem; }
}

/* Standards grid responsive */
@media (max-width: 640px) {
    .standards-grid {
        grid-template-columns: 1fr;
    }
}

/* Clause items responsive */
@media (max-width: 640px) {
    .clause-item { padding: 0.75rem !important; }
    .view-clause-btn { padding: 0.25rem 0.6rem; font-size: 0.65rem; }
}

/* Touch-friendly */
@media (max-width: 768px) {
    button, a, .view-clause-btn, .expand-btn { min-height: 44px; min-width: 44px; }
    body { font-size: 14px; }
    input, select { font-size: 16px !important; }
}

/* Print styles */
@media print {
    .sidebar, nav, .menu-toggle, button {
        display: none !important;
    }
    main {
        margin: 0;
        padding: 0;
    }
    .stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}