:root {
    --primary: #D35400;
    --secondary: #27AE60;
    --accent: #8E44AD;
    --bg: #F8F9FA;
    --card: #FFFFFF;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
}

body {
    font-family: 'Inter', 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2C3E50 0%, #1a252f 50%, #0d1117 100%);
    position: relative;
}

.hero-overlay {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.5;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(211,84,0,0.1), rgba(39,174,96,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.product-overlay {
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Steps */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step .step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cert Cards */
.cert-card {
    transition: all 0.3s ease;
    min-width: 140px;
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Admin Sidebar */
.admin-sidebar {
    min-width: 250px;
    min-height: 100%;
}

.admin-sidebar .nav-link {
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 2px;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    font-weight: 600;
}

/* Messages */
.message-bubble {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Thumbnails */
.thumbnail-img {
    transition: all 0.2s;
    cursor: pointer;
}

.thumbnail-img:hover {
    border-color: var(--primary) !important;
    transform: scale(1.05);
}

/* RTL Support */
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .float-end { float: left !important; }
[dir="rtl"] .text-md-end { text-align: left !important; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .admin-sidebar {
        display: none;
    }
}

/* Badge adjustments */
.badge {
    font-weight: 500;
}

/* Table hover */
.table-hover tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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