/* Volunteer Portal Styles */

/* Header Navigation for Internal Pages */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

header .logo {
    margin: 0;
}

header .logo h1 {
    margin: 0;
}

header .logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

header .logo a:hover {
    transform: scale(1.05);
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    padding: 5px 0;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #59c9b3;
    transition: width 0.3s;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

header nav ul li a.active {
    color: #59c9b3;
    font-weight: 600;
}

.portal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.portal-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.portal-header p {
    font-size: 18px;
    opacity: 0.9;
}

.dashboard {
    padding: 40px 20px;
    background: #f5f6fa;
    min-height: 100vh;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-icon {
    font-size: 40px;
}

.stat-info h3 {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 5px 0;
}

.stat-detail {
    font-size: 13px;
    color: #666;
}

/* Portal Grid */
.portal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Portal Sections */
.portal-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.portal-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #ddd;
    transition: all 0.3s;
}

.schedule-item.active {
    background: #e8f4f8;
    border-left-color: #667eea;
}

.schedule-item.completed {
    opacity: 0.6;
    border-left-color: #28a745;
}

.time-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    height: fit-content;
    white-space: nowrap;
}

.schedule-item.completed .time-badge {
    background: #28a745;
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.schedule-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-tag.done {
    background: #d4edda;
    color: #155724;
}

.status-tag.upcoming {
    background: #d1ecf1;
    color: #0c5460;
}

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

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: background 0.3s;
}

.task-item:hover {
    background: #e9ecef;
}

.task-item.checked {
    opacity: 0.5;
}

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

.task-item label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.task-assignee {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    background: #f8f9fa;
}

.note-item.priority-high {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.note-item.priority-normal {
    border-left-color: #667eea;
    background: #f8f9ff;
}

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

.note-header strong {
    color: #333;
    font-size: 16px;
}

.priority-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #dc3545;
    color: white;
}

.priority-badge.normal {
    background: #667eea;
    color: white;
}

.note-item p {
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.note-item small {
    color: #888;
    font-size: 12px;
}

.btn-add-note {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-note:hover {
    background: #764ba2;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Announcements */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-item {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.announcement-item h4 {
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
}

.announcement-item p {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.announcement-item small {
    color: #888;
    font-size: 12px;
}

/* Supplies List */
.supplies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supply-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
}

.supply-item.low {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.supply-item.urgent {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.supply-item.ok {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.supply-name {
    font-weight: 500;
    color: #333;
}

.supply-status {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.supply-item.urgent .supply-status {
    color: #dc3545;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.event-date {
    background: #667eea;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.event-date .month {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.event-details h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.event-details p {
    font-size: 13px;
    color: #666;
}

/* Responsive Design */
/* Mobile hamburger — hidden on desktop, revealed in the small-screen media query below */
header .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #2c3e50;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}
header .nav-toggle:hover { background: rgba(0,0,0,0.05); }
header .nav-toggle:focus-visible { outline: 2px solid #59c9b3; outline-offset: 2px; }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Stack header rows: logo + hamburger + donate on top, menu drops below when open */
    header .container {
        flex-wrap: wrap;
        gap: 8px;
    }

    header .nav-toggle { display: inline-block !important; }

    /* Hide nav by default on mobile; show only when JS adds .open.
       !important defends against earlier flex/inline rules from header nav. */
    header nav:not(.open) {
        display: none !important;
    }
    header nav.open {
        display: block !important;
        width: 100%;
        order: 99;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid #eee;
    }
    header nav ul li { width: 100%; }
    header nav ul li a {
        display: block;
        padding: 12px 4px;
        font-size: 1rem;
    }
    header nav ul li a::after { display: none; }
}

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

    .schedule-item {
        flex-direction: column;
    }

    .time-badge {
        width: fit-content;
    }

    .portal-header h1 {
        font-size: 24px;
    }
}

/* Kennel Sheets Grid */
.kennel-sheets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.kennel-sheet-item {
    text-align: center;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.kennel-sheet-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.kennel-sheet-item p {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}
