.admin-main {
    padding: 30px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.pending-section {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.pending-section .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pending-section h2 {
    margin: 0;
    font-size: 18px;
    color: #c62828;
}

.pending-badge {
    background: #f44336;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.users-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.section-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

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

.filter-box select,
.filter-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.filter-box input {
    width: 200px;
}

.filter-box select:focus,
.filter-box input:focus {
    outline: none;
    border-color: #2196F3;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.users-table td {
    font-size: 14px;
    color: #666;
}

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

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #1976D2;
}

.role-badge.user {
    background: #f5f5f5;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.rejected {
    background: #ffebee;
    color: #c62828;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete,
.btn-approve,
.btn-reject {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit {
    background: #e3f2fd;
    color: #1976D2;
}

.btn-edit:hover {
    background: #bbdefb;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

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

.btn-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-approve {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-approve:hover {
    background: #c8e6c9;
}

.btn-reject {
    background: #ffebee;
    color: #c62828;
}

.btn-reject:hover {
    background: #ffcdd2;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    margin: 0 0 20px;
    color: #333;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.modal-content .form-group input,
.modal-content .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.modal-content .form-group input[readonly] {
    background: #f5f5f5;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.modal-buttons .btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    border: none;
}

.modal-buttons .btn-secondary {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 992px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .users-table {
        display: block;
        overflow-x: auto;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filter-box {
        flex-direction: column;
        width: 100%;
    }

    .filter-box input,
    .filter-box select {
        width: 100%;
    }
}
