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

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #e8a72f;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --border-color: #ddd;
    --success-color: #28a745;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav li {
    flex: 1;
}

nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: var(--bg-light);
    border-bottom-color: var(--secondary-color);
}

nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--bg-light);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

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

button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Update Instructions */
.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.step code {
    background-color: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Resources */
.resources ul {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    list-style: none;
}

.resources li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resources li:last-child {
    border-bottom: none;
}

.resources a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.resources a:hover {
    text-decoration: underline;
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#searchBtn {
    min-width: 120px;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-controls select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--white);
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

#clearFilters {
    background-color: var(--text-light);
}

#clearFilters:hover {
    background-color: var(--text-dark);
}

/* Contacts Grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-role {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-info div {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--text-dark);
}

/* SOP Content */
.sop-search {
    margin-bottom: 2rem;
}

.sop-search input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.sop-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.sop-content {
    display: grid;
    gap: 1.5rem;
}

.sop-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sop-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.sop-links {
    display: grid;
    gap: 1rem;
}

.sop-link {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    border-left: 4px solid var(--secondary-color);
    transition: background-color 0.3s ease;
}

.sop-link:hover {
    background-color: #e6eef7;
}

.sop-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sop-link a:hover {
    text-decoration: underline;
}

.sop-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Results Count */
#resultsCount {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* No Results */
.no-results {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.no-results p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

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

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

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

    .search-box {
        flex-direction: column;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls select {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Enhanced Header with User Welcome */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-user {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.hero-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-banner p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Stats Dashboard */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Quick Access Section */
.quick-access {
    margin-bottom: 2rem;
}

/* Activity Section (Two Columns) */
.activity-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.activity-column h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Event List Preview */
.event-list {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.event-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.event-preview:last-child {
    border-bottom: none;
}

.event-preview:hover {
    background-color: var(--bg-light);
}

.event-date-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    height: fit-content;
}

.event-month {
    font-size: 0.8rem;
    font-weight: bold;
}

.event-day {
    font-size: 1.8rem;
    font-weight: bold;
}

.event-preview-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.event-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.event-meta span {
    margin-right: 1rem;
}

/* Updates List */
.updates-list {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

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

.update-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.update-text {
    color: var(--text-dark);
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Featured Section */
.featured-section {
    margin-bottom: 2rem;
}

.featured-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.featured-photo {
    flex-shrink: 0;
}

.featured-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}

.featured-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Photos */
.contact-photo {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

/* Calendar Filters */
.calendar-filters {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-row select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.view-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Calendar List View */
.calendar-list {
    display: grid;
    gap: 2rem;
}

.month-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.month-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.events-in-month {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.event-details h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-meta div {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.event-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.volunteers-needed {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* Calendar Month View */
.calendar-month {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.month-header button {
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.month-header button:hover {
    background: var(--primary-color);
}

.month-header h3 {
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.day-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-day {
    background: var(--white);
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
}

.calendar-day.empty {
    background: var(--bg-light);
}

.calendar-day.today {
    background: #e6f2ff;
    border: 2px solid var(--primary-color);
}

.calendar-day.has-events {
    background: #f0f8ff;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.day-events {
    font-size: 0.75rem;
}

.mini-event {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.more-events {
    color: var(--text-light);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-banner h2 {
        font-size: 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-section {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .calendar-grid {
        font-size: 0.85rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .filter-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .day-header {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 60px;
    }
}

/* Calendar Link Section */
.calendar-link-section {
    margin-bottom: 2rem;
}

.calendar-link-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow);
}

.calendar-icon {
    font-size: 4rem;
}

.calendar-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.calendar-info p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

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

.btn-primary:hover {
    background: var(--bg-light);
}

/* Main Areas */
.main-areas {
    margin-bottom: 2rem;
}

.area-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.area-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.area-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.area-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.area-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.area-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 60px;
}

/* Quick Links Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-link {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.quick-icon {
    font-size: 2rem;
}

/* Important Links */
.important-links {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.link-item {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.link-item:last-child {
    margin-bottom: 0;
}

.link-item:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Featured Dashboard (DMT Page) */
.featured-dashboard {
    margin-bottom: 3rem;
}

.dashboard-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.dashboard-icon {
    font-size: 5rem;
}

.dashboard-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.dashboard-info p {
    opacity: 0.95;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Resource Grid (Area Pages) */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.resource-meta {
    margin-bottom: 1.5rem;
}

.resource-category {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-resource {
    width: 100%;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.doc-icon {
    font-size: 2.5rem;
}

.doc-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-area {
    background: var(--secondary-color);
    color: var(--white);
}

.badge-type {
    background: var(--accent-color);
    color: var(--white);
}

.doc-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.doc-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.doc-description {
    color: var(--text-dark);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

.doc-version {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-doc {
    width: 100%;
    text-align: center;
}

/* Results Info */
.results-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

#resultsCount {
    font-weight: 500;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-link-card {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }
    
    .area-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
}
