

/* Modern Tab System */
.modern-tab-system {
    margin: 2rem 0;
}

/* Radio Inputs (Hidden) */
.radio-tab {
    display: none;
}

/* Modern Tabs */
.modern-tabs {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
    padding: 0.5rem 0.5rem 0;
    gap: 0.5rem;
    overflow-x: auto;
}

.modern-tab {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background: white;
    border: 1px solid #dee2e6;
    border-bottom: none;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    user-select: none;
}

.modern-tab:hover {
    background: #f8f9fa;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.radio-tab:checked + .modern-tabs .modern-tab[for="menu1"],
.radio-tab:checked + .modern-tabs .modern-tab[for="menu2"],
.radio-tab:checked + .modern-tabs .modern-tab[for="menu3"],
.radio-tab:checked + .modern-tabs .modern-tab[for="menu4"] {
    background: white;
    color: #0d6efd;
    border-color: #0d6efd;
    border-bottom-color: white;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#menu1:checked ~ .modern-tabs label[for="menu1"] { color: #dc3545; border-color: #dc3545; }
#menu2:checked ~ .modern-tabs label[for="menu2"] { color: #ffc107; border-color: #ffc107; }
#menu3:checked ~ .modern-tabs label[for="menu3"] { color: #0dcaf0; border-color: #0dcaf0; }
#menu4:checked ~ .modern-tabs label[for="menu4"] { color: #198754; border-color: #198754; }

.tab-icon {
    font-size: 1.2rem;
}

.tab-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Modern Panels */
.modern-panels {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    border-top: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.modern-panel {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

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

#menu1:checked ~ .modern-panels #menu1-panel,
#menu2:checked ~ .modern-panels #menu2-panel,
#menu3:checked ~ .modern-panels #menu3-panel,
#menu4:checked ~ .modern-panels #menu4-panel {
    display: block;
}

/* Panel Header */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.panel-header h4 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.panel-search {
    position: relative;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Modern Table */
.modern-table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.modern-table thead th {
    background: linear-gradient(135deg, #003780c2 0%);
    color: white;
    font-weight: 600;
    padding: 1rem 0.75rem;
    border: none;
    position: relative;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-btn {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sort-btn:hover {
    opacity: 1;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:hover {
    background-color: rgba(13, 110, 253, 0.03) !important;
    transform: translateX(4px);
}

.table-row.new-row {
    background-color: rgba(220, 53, 69, 0.05);
    border-left: 3px solid #dc3545;
}

/* Date Cell */
.date-cell {
    position: relative;
    padding: 0.5rem 0;
}

.new-badge {
    position: absolute;
    top: -8px;
    left: -10px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.date-text {
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.time-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
    padding-left: 1.5rem;
}

/* Announcement Link */
.announcement-link {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.announcement-link:hover {
    color: #0d6efd;
}

.announcement-link:hover .announcement-title {
    text-decoration: underline;
}

.announcement-title {
    font-weight: 500;
    line-height: 1.4;
}

.announcement-link i {
    margin-top: 2px;
    font-size: 1.1rem;
    width: 20px;
}

/* File Tags */
.file-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
}

/* View Count */
.view-count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border-radius: 6px;
    min-width: 70px;
    transition: all 0.2s ease;
}

.table-row:hover .view-count {
    background: rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.view-number {
    font-weight: 600;
    color: #2c3e50;
}

.view-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-view:hover {
    background: #0d6efd;
    color: white;
}

.btn-share:hover {
    background: #195487;
    color: white;
}

/* Empty State */
.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Panel Footer */
.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.footer-info {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.btn-more {
    padding: 0.5rem 1rem;
    background: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-more:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .modern-tab {
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-label {
        display: none;
    }
    
    .modern-tab {
        gap: 0.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .panel-search {
        width: 100%;
    }
    
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

