/*
 * LD Tabor - Lovska družina Tabor
 * Verzija: 2.1.2
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-content {
    text-align: center;
}

.header-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Navigation */
.nav-tabs {
    background: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab.active {
    color: #2c5530;
    border-bottom-color: #4a7c59;
    background: rgba(74, 124, 89, 0.1);
}

.nav-tab:hover {
    color: #2c5530;
    background: rgba(74, 124, 89, 0.05);
}

/* Main content */
main {
    padding: 1.5rem 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Login System */
.login-container {
    max-width: 450px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.btn {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    margin-top: 0.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Dashboard */
.member-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    text-align: center;
}

.member-info h2 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.member-role {
    background: #4a7c59;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Location Check Section */
.location-check-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #17a2b8;
}

.location-check-section h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.location-check-controls {
    margin-bottom: 0.5rem;
}

/* Location Conflicts Display */
.location-conflicts-display {
    margin-top: 1.5rem;
}

.location-status {
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.location-status.location-clear {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.location-status.location-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.location-status.location-occupied {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.location-check-result h4 {
    margin-bottom: 0.5rem;
}

.location-check-result p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.location-check-result small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Conflicts List */
.conflicts-list {
    margin-top: 1rem;
}

.conflict-group {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.conflict-group h5 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #2c5530;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.conflict-group.conflict-exact {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.conflict-group.conflict-high {
    border-left: 4px solid #fd7e14;
    background: #fff8f0;
}

.conflict-group.conflict-medium {
    border-left: 4px solid #ffc107;
    background: #fffdf0;
}

.conflict-group.conflict-low {
    border-left: 4px solid #6c757d;
    background: #f8f9fa;
}

.conflict-item {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #dee2e6;
    transition: all 0.2s ease;
}

.conflict-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(2px);
}

.conflict-item.conflict-exact {
    border-left-color: #dc3545;
}

.conflict-item.conflict-high {
    border-left-color: #fd7e14;
}

.conflict-item.conflict-medium {
    border-left-color: #ffc107;
}

.conflict-item.conflict-low {
    border-left-color: #6c757d;
}

.conflict-location {
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.conflict-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.conflict-time {
    flex: 1;
}

.conflict-similarity {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Entry Form */
.entry-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.entry-form h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Active entries styles */
.active-entry-item {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.active-entry-header {
    font-weight: bold;
    color: #155724;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.active-entry-details {
    font-size: 0.9rem;
    color: #155724;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.exit-form {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 0.8rem;
}

.exit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}

.exit-form .form-group {
    margin-bottom: 0;
}

.exit-form .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.exit-form .form-group input {
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Entries List */
.entries-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.entries-section h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.entry-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 4px solid #4a7c59;
}

.entry-header {
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 0.3rem;
}

.entry-details {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.entry-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.entry-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.entry-actions .entry-status {
    margin-top: 0;
}

.status-active {
    background: #d4edda;
    color: #155724;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-completed {
    background: #cce4ff;
    color: #004085;
}

.status-active::before {
    content: "🟢";
    font-size: 0.7rem;
}

.status-completed::before {
    content: "✅";
    font-size: 0.7rem;
}

/* Admin sections */
.admin-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.admin-section h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.member-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-details {
    flex: 1;
}

.member-name {
    font-weight: bold;
    color: #2c5530;
}

.member-serial {
    font-size: 0.85rem;
    color: #666;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

/* Table styles */
.entries-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.entries-table th,
.entries-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.85rem;
}

.entries-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c5530;
}

.entries-table tr:hover {
    background: #f8f9fa;
}

/* Alerts */
.alert {
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

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

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    opacity: 0.9;
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Image Modal - Full screen overlay */
.image-modal-overlay {
    background: rgba(0, 0, 0, 0.95) !important;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000 !important;
}

#imageModal.image-modal-overlay {
    /* Override display:none when shown via JS */
}

#imageModal .image-modal-content {
    max-width: 95%;
    max-height: 70vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    margin: 0;
}

#imageModal img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

/* Floating close button - always visible at top right */
.image-modal-close-floating {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 2.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.image-modal-close-floating:hover,
.image-modal-close-floating:active {
    background: white;
    transform: scale(1.1);
}

/* Bottom close button for mobile */
.image-modal-close-btn-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    padding: 12px 24px;
    font-size: 1.1rem;
    background: white;
    color: #333;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 10001;
}

.image-modal-close-btn-bottom:hover,
.image-modal-close-btn-bottom:active {
    background: #f0f0f0;
}

#locationCheckModal .modal-content {
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-top: -0.5rem;
}

.close:hover {
    color: #000;
}

/* Bulletin Board */
.bulletin-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bulletin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.bulletin-header {
    padding: 1.5rem 1.5rem 0;
}

.bulletin-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulletin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.bulletin-author {
    font-weight: 500;
}

.bulletin-date {
    opacity: 0.8;
}

.bulletin-content {
    padding: 0 1.5rem 1.5rem;
    color: #444;
    line-height: 1.6;
    white-space: pre-wrap;
}

.bulletin-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulletin-priority {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-normal {
    background: #e9ecef;
    color: #495057;
}

.priority-important {
    background: #fff3cd;
    color: #856404;
}

.priority-urgent {
    background: #f8d7da;
    color: #721c24;
}

.bulletin-actions {
    display: flex;
    gap: 0.5rem;
}

.bulletin-expired {
    opacity: 0.6;
    background: #f8f9fa !important;
}

.bulletin-expired .bulletin-title {
    color: #6c757d;
}

.expiry-notice {
    background: #f0f0f0;
    color: #666;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* Priority icons */
.priority-icon {
    font-size: 1.1rem;
}

.priority-icon.normal::before {
    content: "📄";
}

.priority-icon.important::before {
    content: "⚠️";
}

.priority-icon.urgent::before {
    content: "🚨";
}

/* Loading styles */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a7c59;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover .gallery-image {
    transform: scale(1.05);
}

.image-caption {
    padding: 1rem;
    background: white;
}

.image-caption h4 {
    margin: 0 0 0.5rem 0;
    color: #2c5530;
    font-size: 1rem;
}

.image-caption p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Image loading states */
.image-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: #f8f9fa;
    color: #666;
}

.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: #f8d7da;
    color: #721c24;
    flex-direction: column;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Horizontal scrollable navigation on mobile */
    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .nav-tabs-list {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding: 0 0.5rem;
    }

    .nav-tab {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .login-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .entries-table {
        font-size: 0.75rem;
    }

    .entries-table th,
    .entries-table td {
        padding: 0.5rem;
    }

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

    .gallery-image {
        height: 200px;
    }
    
    .image-caption {
        padding: 0.8rem;
    }
    
    .image-caption p {
        font-size: 0.8rem;
    }

    /* Image Modal - Mobile optimized */
    #imageModal .image-modal-content {
        max-width: 100%;
        max-height: 60vh;
        margin: 0;
        padding: 10px;
    }
    
    #imageModal img {
        max-height: 55vh;
    }
    
    .image-modal-close-floating {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }
    
    .image-modal-close-btn-bottom {
        bottom: 15px;
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 160px;
    }

    #locationCheckModal .modal-content {
        margin: 2% auto;
        max-width: 95%;
    }

    .exit-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .active-entry-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .entry-form {
        padding: 1rem;
    }

    .alert {
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .location-check-section {
        padding: 1rem;
    }

    .conflict-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .conflict-group {
        padding: 0.8rem;
    }

    .location-status {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 2% auto;
        padding: 1.5rem;
    }
}

/* Hide elements */
.hidden {
    display: none !important;
}

/* =============================================
   Version 2.2.0 - New Features Styles
   ============================================= */

/* Admin Sub-tabs */
.admin-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-sub-tab {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.admin-sub-tab:hover {
    background: #e8f5e8;
    border-color: #4a7c59;
    color: #2c5530;
}

.admin-sub-tab.active {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    border-color: #2c5530;
    color: white;
}

.admin-sub-content {
    display: none;
}

.admin-sub-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Working Hours Stats */
.working-hours-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.stats-year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 120px;
}

.stats-year-selector label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.stats-year-selector select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.stat-card.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #155724;
}

.stat-card.pending .stat-value {
    color: #856404;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.85rem;
    color: #155724;
    margin-top: 0.3rem;
}

.stat-card.pending .stat-label {
    color: #856404;
}

.stats-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Status styles */
.status-pending {
    background: #fff3cd !important;
    color: #856404 !important;
}

.status-rejected {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* Working Hours Table */
.description-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal styles */
.modal-large {
    max-width: 700px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.wh-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wh-details p {
    margin: 0.5rem 0;
}

.description-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    margin-top: 0.5rem;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* Game Warden Log Styles */
.warden-log-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.warden-log-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.warden-log-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Inline detail panel for warden logs */
.warden-log-detail-panel {
    background: #fff;
    border: 2px solid #2c5530;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.15);
}

.warden-log-detail-panel .detail-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e8f5e9;
}

.warden-log-detail-panel .detail-panel-header h4 {
    margin: 0;
    color: #2c5530;
    font-size: 1.2rem;
}

.detail-panel-actions {
    display: flex;
    gap: 0.5rem;
}

.warden-log-detail-panel .warden-log-details {
    background: #f8faf8;
}

.warden-log-detail-panel .description-box {
    background: white;
    max-height: none;
    white-space: pre-wrap;
}

/* Edit mode styles */
#warden-log-edit-mode .detail-row {
    margin-bottom: 1rem;
}

#warden-log-edit-mode .form-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
}

#warden-log-edit-mode textarea.form-input {
    width: 100%;
    resize: vertical;
    min-height: 100px;
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

.detail-row {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: flex-start;
}

.detail-row.full-width {
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: #2c5530;
    min-width: 150px;
    margin-right: 1rem;
}

.detail-row.full-width .detail-label {
    margin-bottom: 0.5rem;
}

/* Attachments Section */
.attachments-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

.attachments-section h4 {
    margin-bottom: 1rem;
    color: #2c5530;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.attachment-item a {
    color: #4a7c59;
    text-decoration: none;
    flex: 1;
}

.attachment-item a:hover {
    text-decoration: underline;
}

.attachment-preview {
    max-width: 100px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.attachment-preview-small {
    max-width: 40px;
    max-height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.clickable-image:active {
    transform: scale(0.98);
}

/* Image thumbnail wrapper - makes images clickable to open in modal */
.image-thumbnail {
    display: inline-block;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.image-thumbnail img {
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-thumbnail:hover img,
.image-thumbnail:active img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.image-thumbnail::after {
    content: '🔍';
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.8;
    pointer-events: none;
}

.file-size {
    font-size: 0.8rem;
    color: #666;
}

/* Bulletin attachments */
.bulletin-attachments {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #e1e8ed;
}

.bulletin-attachments strong {
    color: #2c5530;
    display: block;
    margin-bottom: 0.5rem;
}

/* Member badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

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

.badge-warden {
    background: #17a2b8;
    color: white;
}

.member-warden-info {
    font-size: 0.8rem;
    color: #17a2b8;
    margin-top: 0.3rem;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

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

/* Small text helper */
.small-text {
    font-size: 0.8rem;
    color: #666;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .admin-sub-tabs {
        justify-content: center;
    }
    
    .admin-sub-tab {
        flex: 1 1 45%;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .working-hours-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .stats-year-selector {
        padding: 0.3rem 0.5rem;
        min-width: auto;
    }
    
    .stats-year-selector label {
        font-size: 0.8rem;
    }
    
    .stats-year-selector select {
        padding: 0.25rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .stat-card {
        min-width: auto;
        padding: 0.6rem 0.4rem;
        flex: 1;
    }
    
    .stat-card .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.7rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        min-width: auto;
        margin-bottom: 0.3rem;
    }
    
    .attachment-item {
        flex-wrap: wrap;
    }
    
    .attachment-preview {
        max-width: 80px;
        max-height: 60px;
    }
    
    .warden-log-detail-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .warden-log-detail-panel .detail-panel-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .warden-log-detail-panel .detail-panel-header h4 {
        font-size: 1rem;
    }
    
    .admin-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .admin-controls select,
    .admin-controls button {
        flex: 1 1 auto;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .admin-sub-tab {
        flex: 1 1 100%;
        font-size: 0.8rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}
