/* ============================================
   Admin Dashboard Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Admin Navbar */
.admin-navbar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-nav-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.admin-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #212121;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s ease;
}

.admin-logo:hover {
    color: #ff0062;
}

.admin-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.admin-logo:hover img {
    transform: scale(1.1);
}


.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-view-site {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #ff0062;
    color: #ff0062;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-view-site:hover {
    transform: translateY(-2px);
}

.admin-user-menu {
    position: relative;
}

.admin-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-user-btn:hover {
    border-color: #ff0062;
    background: rgba(255, 0, 98, 0.05);
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0062 0%, #ff4081 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.admin-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.admin-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #212121;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-dropdown-item:hover {
    background: rgba(255, 0, 98, 0.05);
    color: #ff0062;
}


/* Sidebar */
.admin-sidebar {
    position: fixed;
    right: 0;
    top: 95px;
    width: 260px;
    height: calc(100vh - 73px);
    background: #ffffff;
    border-left: 1px solid #77777754;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
}

.admin-sidebar.collapsed {
    transform: translateX(260px);
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #ff006238 0%, #ff408031 100%);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #424242;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.sidebar-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #f8f9fa;
    color: #ff0062;
    transform: translateX(-2px);
}

.sidebar-link:hover svg {
    opacity: 1;
    color: #ff0062;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(255, 0, 98, 0.08) 0%, rgba(255, 0, 98, 0.02) 100%);
    color: #ff0062;
    font-weight: 600;
}

.sidebar-link.active svg {
    opacity: 1;
    color: #ff0062;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
    margin: 12px 16px;
}

/* Container */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
    margin-right: 260px;
    transition: all 0.3s ease;
    width: 100%;
}

.admin-container.expanded {
    margin-right: 0;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 98, 0.03), rgba(255, 64, 129, 0.02));
    border-radius: 50%;
    transform: translateX(50%);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, #ff0062, #ff4081);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    position: relative;
    z-index: 1;
    padding-right: 20px;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Dashboard Banner */
.dashboard-banner {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(255, 0, 98, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.banner-overlay h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-overlay p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Quick Actions Grid */
.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.admin-action-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.admin-action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 0, 98, 0.2);
}



.admin-action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.admin-action-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.admin-action-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-stat-card {
    background: white;
    border-radius: 6px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 2px solid #ff0062;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Section */
.admin-section {
    margin-bottom: 40px;
}

.admin-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* Actions Grid */
.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.admin-action-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-action-card:hover {
    border-color: #ff0062;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 0, 98, 0.15);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #ff0062;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ff0062;
}

.admin-action-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-action-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Table */
.admin-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8f8f8;
}

.admin-table th {
    padding: 16px 20px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 16px 20px;
    text-align: right;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table tbody tr:hover {
    background: #f8f8f8;
}

.empty-state {
    text-align: center !important;
    padding: 40px !important;
    color: #999 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-container {
        margin-right: 0;
    }
    
    .admin-sidebar {
        transform: translateX(280px);
    }
    
    .admin-sidebar:not(.collapsed) {
        transform: translateX(0);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .admin-nav-container {
        padding: 0 16px;
    }
    
    .admin-nav-left {
        gap: 12px;
    }
    
    .admin-logo {
        font-size: 20px;
    }
    
    .admin-badge {
        display: none;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-welcome {
        display: none;
    }
    
    .admin-sidebar {
        width: 260px;
    }
    
    .admin-sidebar.collapsed {
        transform: translateX(260px);
    }
}

/* ============================================
   Products Page Styles
   ============================================ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.page-description {
    font-size: 15px;
    color: #666;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #ff0062;
    background: #ffffff;
    color: #ff0062;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffffff;
}


.btn-secondary {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.products-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff0062;
}

.product-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.badge-inactive {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.btn-edit:hover {
    background: rgba(0, 212, 255, 0.2);
}

.btn-delete {
    background: rgba(255, 0, 0, 0.1);
    color: #f44336;
}

.btn-delete:hover {
    background: rgba(255, 0, 0, 0.2);
}

.empty-state-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    color: #999;
}

.empty-state-card svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-card h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 8px;
}

.empty-state-card p {
    font-size: 14px;
}

/* ============================================
   Modal Styles
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.modal-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff0062;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 0, 98, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    user-select: none;
}

/* Admin Search Bar */
.admin-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-search-bar svg {
    position: absolute;
    left: 12px;
    color: #9e9e9e;
    pointer-events: none;
}

.admin-search-bar input {
    padding: 10px 16px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 300px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.admin-search-bar input:focus {
    outline: none;
    border-color: #ff0062;
    box-shadow: 0 0 0 3px rgba(255, 0, 98, 0.1);
}

.admin-search-bar input::placeholder {
    color: #9e9e9e;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive for Products */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* ===================================
   V8 Scripts Styles
   =================================== */

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.script-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.script-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.script-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.script-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.script-content {
    padding: 20px;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.script-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.script-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.script-badge.badge-new {
    background: #4CAF50;
    color: white;
}

.script-badge.badge-updated {
    background: #2196F3;
    color: white;
}

.script-badge.badge-popular {
    background: #FF9800;
    color: white;
}

.script-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.script-meta {
    margin-bottom: 16px;
}

.script-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.script-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.settings-form {
    max-width: 600px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
}

/* ===================================
   Enhanced V8 Scripts Styles
   =================================== */

.settings-card {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #f0f0f0;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f5f5f5;
}

.settings-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0062;
    flex-shrink: 0;
}

.settings-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.settings-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.settings-form .form-group label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.settings-form .form-group input {
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.settings-form .form-group input:focus {
    border-color: #ff0062;
    box-shadow: 0 0 0 4px rgba(255, 0, 98, 0.08);
}

.settings-form .form-group small {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

.settings-form .btn-primary {
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0;
    border: none;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff0062, #ff4081);
    border-radius: 2px;
}

/* Enhanced Script Cards */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.script-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.script-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 0, 98, 0.2);
}

.script-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #f8f8f8;
    position: relative;
}

.script-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.script-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
}

.script-content {
    padding: 24px;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.script-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    flex: 1;
}

.script-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.script-badge.badge-new {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.script-badge.badge-updated {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
}

.script-badge.badge-popular {
    background: linear-gradient(135deg, #FF9800, #FFA726);
    color: white;
}

.script-description {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.script-meta {
    margin-bottom: 18px;
}

.script-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.script-actions {
    display: flex;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.script-actions .btn-edit,
.script-actions .btn-delete {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.script-actions .btn-edit {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.15));
    color: #00a8cc;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.script-actions .btn-edit:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.script-actions .btn-delete {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.08), rgba(255, 0, 0, 0.12));
    color: #e53935;
    border: 1px solid rgba(255, 0, 0, 0.15);
}

.script-actions .btn-delete:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0.18));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

/* Empty State Enhancement */
.empty-state-card {
    background: white;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #e0e0e0;
}

.empty-state-card svg {
    opacity: 0.3;
    margin-bottom: 20px;
    color: #ff0062;
}

.empty-state-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.empty-state-card p {
    font-size: 15px;
    color: #888;
}


/* ============================================
   Admin Login Modal
   ============================================ */

.admin-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-login-modal.active {
    display: flex;
    opacity: 1;
}

.admin-login-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-login-modal.active .admin-login-content {
    transform: scale(1);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.admin-login-header p {
    font-size: 14px;
    color: #666;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.admin-form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.admin-form-group input:focus {
    outline: none;
    border-color: #ff0062;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 0, 98, 0.1);
}

.admin-login-error {
    display: none;
    padding: 12px 16px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #d32f2f;
    font-size: 14px;
    text-align: center;
}

.admin-login-error.active {
    display: block;
}

.admin-login-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.admin-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}



.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 98, 0.3);
}

.admin-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.admin-btn-secondary:hover {
    background: #e0e0e0;
}

.admin-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.admin-close-btn svg {
    width: 20px;
    height: 20px;
}

/* RTL Support */
html[lang="ar"] .admin-close-btn {
    right: auto;
    left: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .admin-login-content {
        padding: 30px 24px;
        width: 95%;
    }
    
    .admin-login-header h2 {
        font-size: 20px;
    }
    
    .admin-login-buttons {
        flex-direction: column;
    }
}
/* ============================================
   User Profile Dropdown Styles
   ============================================ */

.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-family: inherit;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, #ff0062, #ffffff) border-box;
    transition: all 0.3s ease;
}

.user-profile-btn:hover .user-avatar {
    transform: scale(1.05);
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.user-profile-btn:hover .dropdown-arrow {
    opacity: 1;
}

.user-profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    gap: 14px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 0, 76, 0.596);
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, #ff0062, #ffffff) border-box;
    flex-shrink: 0;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropdown-username {
    font-size: 17px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-email {
    font-size: 13px;
    color: rgba(71, 71, 71, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-role {
    display: none;
}

.role-badge {
    display: none;
}

/* Dropdown Divider */
.dropdown-divider {
    display: none;
}

/* Dropdown Links */
.dropdown-links {
    padding: 12px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(29, 29, 29, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #ff0062, #ffffff);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgb(58, 58, 58);
    padding-left: 20px;
}

.dropdown-link svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.dropdown-link:hover svg {
    opacity: 1;
    transform: translateX(2px);
}

.logout-link {
    color: rgba(255, 100, 100, 0.8);
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.logout-link::before {
    background: linear-gradient(135deg, #ff0062, #ff4444);
}

.logout-link:hover {
    background: rgba(255, 0, 0, 0.08);
    color: #ff6b6b;
}

/* RTL Support */
html[lang="ar"] .user-dropdown-menu {
    right: auto;
    left: 0;
}

/* ============================================
   Animations & Transitions
   ============================================ */

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations */
.admin-container {
    animation: fadeIn 0.3s ease;
}

.admin-stat-card {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.admin-stat-card:nth-child(1) { animation-delay: 0.1s; }
.admin-stat-card:nth-child(2) { animation-delay: 0.2s; }
.admin-stat-card:nth-child(3) { animation-delay: 0.3s; }
.admin-stat-card:nth-child(4) { animation-delay: 0.4s; }

.script-card {
    animation: fadeInUp 0.4s ease;
    animation-fill-mode: both;
}

.script-card:nth-child(1) { animation-delay: 0.05s; }
.script-card:nth-child(2) { animation-delay: 0.1s; }
.script-card:nth-child(3) { animation-delay: 0.15s; }
.script-card:nth-child(4) { animation-delay: 0.2s; }
.script-card:nth-child(5) { animation-delay: 0.25s; }
.script-card:nth-child(6) { animation-delay: 0.3s; }

.section-header {
    animation: slideInRight 0.5s ease;
}

.sidebar-link {
    animation: slideInRight 0.3s ease;
    animation-fill-mode: both;
}

.sidebar-link:nth-child(1) { animation-delay: 0.05s; }
.sidebar-link:nth-child(2) { animation-delay: 0.1s; }
.sidebar-link:nth-child(3) { animation-delay: 0.15s; }
.sidebar-link:nth-child(4) { animation-delay: 0.2s; }
.sidebar-link:nth-child(5) { animation-delay: 0.25s; }

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 0, 98, 0.1);
    border-top-color: #ff0062;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal Animation */
.modal.active {
    animation: fadeIn 0.3s ease;
}

.modal.active .modal-content {
    animation: fadeInUp 0.3s ease;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Responsive Design - Media Queries
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .admin-nav-container {
        max-width: 95%;
        padding: 0 16px;
    }
    
    .admin-container {
        margin-right: 0 !important;
        padding: 24px 16px;
        width: 100%;
    }
    
    .admin-sidebar {
        transform: translateX(260px);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .scripts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .page-header {
        padding: 20px 20px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .admin-nav-container {
        padding: 0 12px;
        gap: 8px;
    }
    
    .admin-logo img {
        width: 32px;
        height: 32px;
    }
    
    .btn-view-site {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-view-site svg {
        width: 16px;
        height: 16px;
    }
    
    .admin-user-btn span {
        display: none;
    }
    
    .admin-user-btn {
        padding: 8px;
    }
    
    .admin-container {
        margin-right: 0 !important;
        padding: 16px 12px;
        width: 100%;
    }
    
    .admin-sidebar {
        width: 280px;
        transform: translateX(280px);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .page-header {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-title::before {
        width: 3px;
        height: 22px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .admin-search-bar {
        width: 100%;
    }
    
    .admin-search-bar input {
        width: 100%;
    }
    
    .scripts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .admin-navbar {
        padding: 8px 0;
    }
    
    .admin-nav-container {
        padding: 0 8px;
    }
    
    .admin-logo img {
        width: 28px;
        height: 28px;
    }
    
    .btn-view-site,
    .admin-user-btn {
        padding: 6px 8px;
    }
    
    .admin-container {
        padding: 12px 8px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .admin-stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
}

html[lang="ar"] .dropdown-header {
    direction: rtl;
}

html[lang="ar"] .dropdown-links {
    direction: rtl;
}

html[lang="ar"] .dropdown-link {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-profile-btn {
        padding: 8px;
    }
    
    .user-dropdown-menu {
        min-width: 260px;
        right: -10px;
    }
    
    html[lang="ar"] .user-dropdown-menu {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .user-dropdown-menu {
        position: fixed;
        top: 70px !important;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    html[lang="ar"] .user-dropdown-menu {
        left: 10px;
        right: 10px;
    }
}

/* ============================================
   Users Page Styles
   ============================================ */

.users-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.users-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.users-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.users-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.users-stat-total {
    background: linear-gradient(135deg, rgba(255, 0, 98, 0.1), rgba(255, 0, 98, 0.15));
    color: #ff0062;
}

.users-stat-active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.15));
    color: #4CAF50;
}

.users-stat-admin {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.15));
    color: #9C27B0;
}

.users-stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.users-stat-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.users-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
}

.users-table th {
    padding: 16px 20px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #424242;
    border-bottom: 2px solid #e0e0e0;
}

.users-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.users-table tbody tr {
    transition: all 0.2s ease;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0062, #ff4081);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
}

.user-id {
    font-size: 12px;
    color: #999;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.role-admin {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.15));
    color: #9C27B0;
}

.role-user {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.15));
    color: #2196F3;
}

.text-muted {
    color: #999;
    font-style: italic;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}


.btn-delete {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.15));
    color: #F44336;
}

.btn-delete:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.2));
    transform: scale(1.1);
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.user-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-detail-item label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.user-detail-item span {
    font-size: 15px;
    color: #1a1a1a;
}

/* Category Cards (No Image) */
.category-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff0062 0%, #ff4081 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-inactive {
    background: #ffebee;
    color: #c62828;
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #1a1a1a;
    font-weight: 600;
}

.info-value code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #ff0062;
}

.category-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .user-details-grid {
        grid-template-columns: 1fr;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 800px;
    }
    
    .category-card {
        padding: 16px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
    }
    
    .category-title {
        font-size: 18px;
    }
}
