/* Admin Panel Styles */

body {
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e9ecef;
    position: fixed;
    height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-header i {
    color: #ff69b4;
    margin-right: 0.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: #666;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(255,105,180,0.1), rgba(138,43,226,0.1));
    color: #ff69b4;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #ff69b4, #8a2be2);
    color: white;
    box-shadow: 0 4px 15px rgba(255,105,180,0.3);
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

/* Section Management */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-header p {
    color: #666;
    margin: 0.5rem 0 0 0;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.content-card h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #ff69b4, #e55aa0);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #8a2be2, #6f42c1);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
}

.stat-content p {
    color: #666;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Tables */
.table {
    margin: 0;
}

.table th {
    border-top: none;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #333;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #f8f9fa;
}

.table tbody tr:hover {
    background: rgba(255,105,180,0.05);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.approved {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
}

.status-badge.admin {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

.status-badge.user {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.status-badge.public {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.status-badge.private {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.status-badge.active {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.status-badge.inactive {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

/* Action Buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    margin-right: 0.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(45deg, #138496, #0f6674);
    color: white;
    transform: translateY(-1px);
}

.btn-delete {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
    color: white;
    transform: translateY(-1px);
}

.btn-approve {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-approve:hover {
    background: linear-gradient(45deg, #20c997, #17a2b8);
    color: white;
    transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Recent Activity */
.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: white;
}

.activity-icon.show {
    background: linear-gradient(135deg, #ff69b4, #e55aa0);
}

.activity-icon.user {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.activity-icon.domain {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.activity-content h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.activity-content p {
    margin: 0.25rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #ff69b4 0%, #8a2be2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 0.2rem rgba(255,105,180,0.25);
}

.form-check-input:checked {
    background-color: #ff69b4;
    border-color: #ff69b4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff69b4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

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

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
} 