:root {
    --primary-color: #6B46C1;
    --secondary-color: #8C8C8C;
    --accent-color: #4A4A4A;
    --light-purple: #9F7AEA;
    --light-gray: #F5F5F5;
    --text-color: #4A4A4A;
    --border-color: #E5E5E5;
    --gradient-purple: linear-gradient(135deg, #6B46C1 0%, #9F7AEA 100%);
    --gradient-gray: linear-gradient(135deg, #8C8C8C 0%, #F5F5F5 100%);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--light-gray);
}


/* Header/Navbar Styles */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.navbar {
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    background: white;
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: 600;
}


/* Main Content Styles */

.container {
    flex: 1 0 auto;
    padding: 2rem 0;
}

main {
    min-height: calc(100vh - 200px);
    /* Adjust based on your header/footer height */
}


/* Card Styles */

.card {
    border-radius: 12px;
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: var(--gradient-purple);
    color: white;
    border: none;
    padding: 1.5rem;
}


/* Button Styles */

.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--gradient-purple);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 70, 193, 0.3);
}

.btn-secondary {
    background: var(--gradient-gray);
    border: none;
    color: white;
}


/* Form Styles */

.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.25);
}

.form-floating > label {
    color: var(--secondary-color);
}


/* Icon Circles */

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}


/* Stats Cards */

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px);
}


/* Table Styles */

.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: var(--gradient-purple);
    color: white;
    border: none;
    padding: 1rem;
}


/* Footer Styles */

.footer {
    background: white;
    padding: 3rem 0;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}


/* RTL Support */

.rtl {
    font-family: 'Cairo', 'Poppins', sans-serif;
    text-align: right;
}

.rtl .navbar-nav,
.rtl .dropdown-menu {
    text-align: right;
}

.rtl .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}


/* Navbar Brand */

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}


/* Navigation Links */

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}


/* Language Switcher */

.language-switcher .btn {
    border-radius: 20px;
    padding: 0.375rem 1rem;
    transition: all 0.3s ease;
}

.language-switcher .btn:hover {
    transform: translateY(-2px);
}


/* Animations */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(107, 70, 193, 0.25);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}