/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    transition: margin-right 0.3s ease;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    direction: rtl;
    /* Right-to-left for Arabic */
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(135deg, #0A2647 0%, #144272 100%);
    color: #fff;
    transition: transform 0.3s ease;
    z-index: 1000;
    transform: translateX(0);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    transform: translateX(280px);
}

.sidebar .sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.sidebar .sidebar-header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sidebar .sidebar-header .logo-container i {
    font-size: 28px;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar .sidebar-header h3 {
    color: #fff;
    font-size: 26px;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar ul.components {
    padding: 0;
    list-style: none;
    margin: 0;
}

.sidebar ul p {
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    display: block;
}

.sidebar ul li {
    margin: 5px 10px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar ul li a {
    padding: 15px 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f8f9fa;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    background: transparent;
}

.sidebar ul li a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: #f8f9fa;
    transition: all 0.3s ease;
}

.sidebar ul li a span {
    flex: 1;
    font-weight: 500;
}

.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar ul li a:hover i {
    color: #FFD700;
    transform: scale(1.1);
}

.sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: transparent;
}

.sidebar ul li.active>a i {
    color: #FFD700;
}

/* Remove gold color from logout item hover */
.sidebar ul li.logout-item a:hover i {
    color: #fff !important;
}

.sidebar ul li.logout-item {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.sidebar ul li.logout-item a {
    background: transparent;
    border: none;
}

.sidebar ul li.logout-item a:hover {
    background: rgba(220, 53, 69, 0.4);
    border-color: rgba(220, 53, 69, 0.5);
}

/* Main Content Styles */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s ease;
    margin-right: 280px;
    /* Same as sidebar width */
    background: #f8f9fa;
}

#content.expanded {
    margin-right: 0;
}

/* Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #0A2647 0%, #144272 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 38, 71, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #144272 0%, #205295 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(10, 38, 71, 0.4);
}

.sidebar-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed~#content .sidebar-toggle {
    right: 20px;
}

.sidebar:not(.collapsed)~#content .sidebar-toggle {
    right: 300px;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        /* تقليل العرض من 100% إلى 85% */
        max-width: 300px;
        /* حد أقصى للعرض */
        transform: translateX(100%);
        /* Hide sidebar by default on mobile */
    }

    .sidebar.collapsed {
        transform: translateX(0);
        /* Show sidebar when toggled */
    }

    #content {
        margin-right: 0;
        padding: 15px;
    }

    .sidebar-toggle {
        right: 20px;
        top: 15px;
    }

    .sidebar:not(.collapsed)~#content .sidebar-toggle {
        right: 20px;
    }

    .sidebar .sidebar-header h3 {
        font-size: 22px;
    }

    .sidebar ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 80%;
        /* عرض أصغر للشاشات الصغيرة جداً */
        max-width: 280px;
    }

    .sidebar ul li a span {
        font-size: 13px;
    }

    .sidebar .sidebar-header .logo-container i {
        font-size: 24px;
    }

    .sidebar .sidebar-header h3 {
        font-size: 20px;
    }

    .sidebar ul li a {
        padding: 10px 12px;
        /* تقليل الـ padding أكثر */
        gap: 12px;
        /* تقليل المسافة بين الأيقونة والنص */
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .sidebar {
        width: 75%;
        max-width: 260px;
    }

    .sidebar .sidebar-header {
        padding: 20px 15px;
    }

    .sidebar ul li a {
        padding: 8px 10px;
        font-size: 12px;
        gap: 10px;
    }

    .sidebar ul li a i {
        font-size: 16px;
        width: 18px;
    }
}

/* Card View for Index Pages */
.card-view-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.entity-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Full width on small screens */
}

.entity-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.entity-card .card-header {
    background-color: #205295;
    /* Accent Blue */
    /*color: #fff;*/
    padding: 15px;
    border-bottom: 1px solid #144272;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.entity-card .card-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.entity-card .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.entity-card .card-body {
    padding: 20px;
    flex-grow: 1;
}

.entity-card .card-body .card-text {
    margin-bottom: 1rem;
    color: #6c757d;
    max-height: 100px;
    overflow: auto;
}

.entity-card .card-body .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.entity-card .card-body .info-item {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.entity-card .card-body .info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #0A2647;
    /* Dark Blue */
}

.entity-card .card-footer {
    background-color: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.entity-card .card-footer .btn {
    min-width: 80px;
}

/* Form Styles */
.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    color: #0A2647;
    /* Dark Blue */
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #205295;
    /* Accent Blue */
    box-shadow: 0 0 0 0.2rem rgba(32, 82, 149, 0.25);
}

.btn-primary {
    background-color: #0A2647;
    /* Dark Blue */
    border-color: #0A2647;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #144272;
    /* Lighter Blue */
    border-color: #144272;
}

.back-to-list-link {
    display: inline-block;
    margin-top: 20px;
    color: #0A2647;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-list-link:hover {
    color: #205295;
    text-decoration: underline;
}

/* Sign In Page Styles */
.signin-container {
    max-width: 450px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.signin-header {
    text-align: center;
    margin-bottom: 30px;
}

.signin-header h2 {
    color: #0A2647;
    /* Dark Blue */
    font-weight: 700;
}

.signin-header p {
    color: #6c757d;
}

.form-floating>label {
    right: 0;
    left: auto;
}

/* Entity Page (Profile) Styles */
.profile-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    /* Ensures child elements conform to border radius */
}

.profile-card .card-header {
    background-color: #0A2647;
    /* Dark Blue */
    color: #fff;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-card .card-body {
    padding: 20px;
}

.profile-header {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #0A2647;
}

.profile-header h3 {
    color: #0A2647;
    margin-top: 15px;
    margin-bottom: 5px;
}

.profile-header .slogan {
    color: #6c757d;
    font-style: italic;
}

.social-links-list {
    list-style: none;
    padding: 0;
}

.social-links-list li a {
    display: block;
    padding: 8px 0;
    color: #205295;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links-list li a:hover {
    color: #0A2647;
}

.candidate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.candidate-card .card-body h5 {
    color: #0A2647;
    /* Dark Blue */
}

.candidate-card .card-footer {
    background-color: #f8f9fa;
}

/* Additional Sidebar Enhancements */
.sidebar ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #FFD700;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.sidebar ul li a:hover::before,
.sidebar ul li.active>a::before {
    transform: scaleY(1);
}

/* Smooth animations for sidebar items */
.sidebar ul li {
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
}

.sidebar ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.sidebar ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.sidebar ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.sidebar ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.sidebar ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.sidebar ul li:nth-child(6) {
    animation-delay: 0.6s;
}

.sidebar ul li:nth-child(7) {
    animation-delay: 0.7s;
}

.sidebar ul li:nth-child(8) {
    animation-delay: 0.8s;
}

.sidebar ul li:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Active page indicator */
.sidebar ul li.current-page>a {
    background: transparent;
    color: #fff;
}

.sidebar ul li.current-page>a i {
    color: #FFD700;
}

/* Ensure normal state icons are white */
.sidebar ul li:not(.current-page):not(.active) a i {
    color: #f8f9fa;
}

/* Tooltip for collapsed sidebar (future enhancement) */
.sidebar-tooltip {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1002;
}

.sidebar ul li a:hover .sidebar-tooltip {
    opacity: 1;
}

/* Footer in sidebar */
.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

/* Scrol
led header effect */
.sidebar .sidebar-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* Loading animation for sidebar items */
.sidebar ul li.loading {
    opacity: 0.5;
    pointer-events: none;
}

.sidebar ul li.loading a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Improved focus states for accessibility */
.sidebar ul li a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.15);
}

/* Badge/notification support */
.sidebar ul li a .badge {
    position: absolute;
    left: 10px;
    top: 8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Divider between menu sections */
.sidebar ul li.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
    border-radius: 0;
}

.sidebar ul li.menu-divider::before {
    display: none;
}

/* Submenu support (if needed in future) */
.sidebar ul li.has-submenu>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    transition: transform 0.3s ease;
}

.sidebar ul li.has-submenu.open>a::after {
    transform: rotate(180deg);
}

.sidebar ul li .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 10px;
    border-radius: 0 0 8px 8px;
}

.sidebar ul li.open .submenu {
    max-height: 300px;
}

.sidebar ul li .submenu li a {
    padding: 10px 15px 10px 45px;
    font-size: 14px;
}

/* 
Override any gold color in normal state */
.sidebar ul li a i {
    color: #f8f9fa !important;
}

/* Gold color only on hover */
.sidebar ul li a:hover i {
    color: #FFD700 !important;
}

/* Gold color for active/current page */
.sidebar ul li.active>a i,
.sidebar ul li.current-page>a i {
    color: #FFD700 !important;
}

/* Keep logo icon gold */
.sidebar .sidebar-header .logo-container i {
    color: #FFD700 !important;
}

/* Logout button should stay white on hover */
.sidebar ul li.logout-item a i,
.sidebar ul li.logout-item a:hover i {
    color: #fff !important;
}

/* Clear all backgrounds in normal state */
.sidebar ul li a {
    background: transparent !important;
}

/* Background only on hover */
.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Background for current/active page only on hover */
.sidebar ul li.current-page a:hover,
.sidebar ul li.active>a:hover {
    background: rgba(255, 215, 0, 0.2) !important;
}

/* Logout button hover */
.sidebar ul li.logout-item a:hover {
    background: rgba(220, 53, 69, 0.3) !important;
}

/* Fix
 for specific menu items that might not be responding to hover */
.sidebar ul li a[href*="ShowConsultationReceivers"]:hover i,
.sidebar ul li a[href*="MyReceivedInquiries"]:hover i {
    color: #FFD700 !important;
}

/* Ensure all sidebar icons are consistent */
.sidebar ul li a i {
    color: #f8f9fa !important;
    transition: color 0.3s ease !important;
}

/* Hover state for all icons except logout */
.sidebar ul li:not(.logout-item) a:hover i {
    color: #FFD700 !important;
    transform: scale(1.1) !important;
}

/* Active/current page icons */
.sidebar ul li.active>a i,
.sidebar ul li.current-page>a i {
    color: #FFD700 !important;
}

/* For
/* تحسين ظهور السايد بار في الموبايل */
@media (max-width: 768px) {

    /* إضافة overlay خلف السايد بار */
    .sidebar:not(.collapsed)::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    /* تحسين الانتقال */
    .sidebar {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    /* تحسين موضع زر التبديل */
    .sidebar-toggle {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1002;
    }
}

/* Enha
nced Sign In Page Styles */
.auth-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0A2647 0%, #144272 50%, #205295 100%);
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.animated-signin {
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signin-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 450px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.signin-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0A2647, #FFD700, #205295);
    border-radius: 20px 20px 0 0;
}

.signin-header {
    text-align: center;
    margin-bottom: 30px;
}

.signin-header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.signin-header .logo-container i {
    font-size: 32px;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signin-header .logo-container h2 {
    color: #0A2647;
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.signin-header h3 {
    color: #0A2647;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 24px;
}

.signin-header p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 16px;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group-animated {
    margin-bottom: 25px;
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 15px;
    color: #6c757d;
    font-size: 18px;
    z-index: 2;
    transition: color 0.3s ease;
}

.animated-input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.animated-input:focus {
    border-color: #0A2647;
    box-shadow: 0 0 0 3px rgba(10, 38, 71, 0.1);
    transform: translateY(-2px);
}

.input-container.focused .input-icon {
    color: #0A2647;
    transform: scale(1.1);
}

.input-container.focused .animated-input {
    border-color: #0A2647;
    box-shadow: 0 0 0 3px rgba(10, 38, 71, 0.1);
}

.floating-label {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #fff;
    padding: 0 5px;
}

.input-container.focused .floating-label,
.animated-input:focus+.floating-label {
    top: -8px;
    font-size: 12px;
    color: #0A2647;
    font-weight: 600;
}

.password-toggle {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #0A2647;
}

.btn-signin {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0A2647 0%, #144272 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-signin:hover {
    background: linear-gradient(135deg, #144272 0%, #205295 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 38, 71, 0.3);
}

.btn-signin:active {
    transform: translateY(0);
}

.btn-signin.loading .btn-text {
    opacity: 0;
}

.btn-signin.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.validation-message {
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsive Design for Sign In */
@media (max-width: 768px) {
    .signin-container {
        padding: 30px 25px;
        margin: 20px;
    }

    .signin-header .logo-container h2 {
        font-size: 24px;
    }

    .signin-header h3 {
        font-size: 20px;
    }

    .animated-input {
        padding: 12px 45px 12px 12px;
        font-size: 14px;
    }

    .floating-label {
        font-size: 14px;
        right: 45px;
    }

    /* تصغير الأشكال للتابلت */
    .shape-1 {
        width: 60px;
        height: 60px;
        top: 18%;
        left: 8%;
    }

    .shape-2 {
        width: 90px;
        height: 90px;
        top: 65%;
        right: 12%;
    }

    .shape-3 {
        width: 45px;
        height: 45px;
        bottom: 28%;
        left: 18%;
    }

    .shape-4 {
        width: 75px;
        height: 75px;
        top: 12%;
        right: 28%;
    }
}

@media (max-width: 480px) {
    .signin-container {
        padding: 25px 20px;
    }

    /* تصغير الأشكال للموبايل بدلاً من إخفائها */
    .shape-1 {
        width: 40px;
        height: 40px;
        top: 15%;
        left: 5%;
    }

    .shape-2 {
        width: 60px;
        height: 60px;
        top: 70%;
        right: 8%;
    }

    .shape-3 {
        width: 30px;
        height: 30px;
        bottom: 25%;
        left: 15%;
    }

    .shape-4 {
        width: 50px;
        height: 50px;
        top: 8%;
        right: 25%;
    }
}

/ * أشكال إضافية للموبايل */ @media (max-width: 480px) {
    /* إضافة أشكال صغيرة إضافية */
    .floating-shapes::after,
    .floating-shapes::before {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 215, 0, 0.1);
        animation: float 8s ease-in-out infinite;
    }

    .floating-shapes::after {
        width: 25px;
        height: 25px;
        top: 40%;
        right: 10%;
        animation-delay: 3s;
    }

    .floating-shapes::before {
        width: 35px;
        height: 35px;
        bottom: 15%;
        right: 30%;
        animation-delay: 5s;
    }
}

/* تحسين الأنيميشن للشاشات الصغيرة */
@media (max-width: 768px) {
    @keyframes float {

        0%,
        100% {
            transform: translateY(0px) rotate(0deg);
            opacity: 0.6;
        }

        50% {
            transform: translateY(-15px) rotate(180deg);
            opacity: 0.9;
        }
    }

    /* تقليل شدة الحركة في الموبايل */
    .animated-signin {
        animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .fade-in-up {
        animation: fadeInUp 0.4s ease forwards;
    }
}

/* تأثيرات إضافية للموبايل */
@media (max-width: 480px) {

    /* تقليل حركة الأشكال أكثر */
    @keyframes float {

        0%,
        100% {
            transform: translateY(0px) rotate(0deg);
            opacity: 0.5;
        }

        50% {
            transform: translateY(-10px) rotate(90deg);
            opacity: 0.8;
        }
    }

    /* إضافة تأثير نبضة خفيفة للأشكال */
    .shape {
        animation: float 6s ease-in-out infinite, pulse 4s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }
    }
}