/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    font-family: 'Inter', sans-serif;
}

/* Common Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.smooth-transition {
    transition: all 0.3s ease;
}

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

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Button Hover Effect */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-hover:hover::before {
    left: 100%;
}

/* Status Badges */
.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
}

.status-inactive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Role Badges */
.role-admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.role-manager {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.role-user {
    background: linear-gradient(135deg, #10b981, #059669);
}

.role-viewer {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Sidebar Styles */
.menu-category {
    margin-bottom: 1rem;
}

.category-header {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.submenu.open {
    max-height: 500px;
}

.submenu-item {
    padding-left: 3rem;
}

.menu-item {
    position: relative;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.chevron-icon.rotated {
    transform: rotate(90deg);
}

.notification-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.5rem;
    min-width: 1rem;
    text-align: center;
}

/* Alert Notifications */
.alert-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.table-row:hover {
    background-color: #f9fafb;
}

/* Form Styles */
.form-input:focus {
    ring: 2px;
    ring-color: #8b5cf6;
    ring-offset: 2px;
}

/* Filter Buttons */
.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    color: white !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 50;
        width: 100%;
        max-width: 18rem;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}