/* Admin Dashboard Styles */

.admin-body {
    background: #f5f7fa !important;
    min-height: 100vh;
    padding: 0 !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    margin: 0;
}

.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

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

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

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logo {
    height: 50px;
    width: auto;
    /* Remove white filter - logo will show in original colors on blue background */
}

.login-card .logo {
    height: 80px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.admin-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white;
}

.admin-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Login Card */
.login-card {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

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

/* Filters Card */
.filters-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.filters-card h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group input {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
}

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

.filter-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-block;
    text-align: center;
}

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

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

.btn-secondary {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    margin-left: 10px;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 5px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-view {
    background: #8b5cf6;
    color: white;
}

.btn-view:hover {
    background: #7c3aed;
}

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

.btn-download:hover {
    background: #059669;
}

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

.btn-delete:hover {
    background: #dc2626;
}

/* Alert Messages for Admin */
.admin-container .alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.admin-container .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.admin-container .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Table Card */
.table-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.table-card h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: var(--accent-color);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.data-table tbody tr:hover {
    background: var(--accent-color);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.page-link {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-dark);
}

.page-info {
    color: var(--text-light);
    font-weight: 500;
}

/* Details Card */
.details-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.details-card h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--accent-color);
    border-radius: 8px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Files Grid */
.files-grid {
    display: grid;
    gap: 15px;
}

.file-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.file-card:hover {
    background: #e8ecf1;
    box-shadow: var(--shadow-sm);
}

.file-card-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.file-card-details {
    flex: 1;
    min-width: 0;
}

.file-card-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-card-actions {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .file-card {
        flex-direction: column;
        text-align: center;
    }
    
    .file-card-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .file-card-actions {
        margin-top: 15px;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Activity Log Styles */
.action-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.action-upload {
    background: #dbeafe;
    color: #1e40af;
}

.action-admin {
    background: #f3e8ff;
    color: #6b21a8;
}

.action-delete {
    background: #fee2e2;
    color: #991b1b;
}

.action-error {
    background: #fef3c7;
    color: #92400e;
}

.activity-log-table td small {
    color: var(--text-light);
}

/* Bulk Actions Styles */
.bulk-actions-bar {
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-actions-bar .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-actions-bar select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.bulk-actions-bar .btn {
    margin-left: 10px;
}

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

/* Success button */
.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Charts Container */
.charts-section {
    margin-bottom: 30px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Advanced Filters */
.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 10px;
}

