/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    background-color: #f5f7fa;
}

/* RTL Fixes */
[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 70px;
    height: 70px;
    position: relative;
    margin: 0 auto 20px;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

.loading-text {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 20px;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(13, 110, 253, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), #4a6bff);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

/* Calendar */
.calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: #e9ecef;
}

.calendar-day.today {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.event-day {
    position: relative;
}

.calendar-day.event-day::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.calendar-day.other-month {
    color: #adb5bd;
}

/* Upcoming Events */
.upcoming-events {
    max-height: 400px;
    overflow-y: auto;
}

.event-item {
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-item .event-time {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.event-item .event-title {
    font-weight: bold;
    margin: 5px 0;
}

.event-item .event-type {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 20px;
    background-color: #e9ecef;
    color: var(--dark-color);
}

.event-item.study-event .event-type {
    background-color: #d1e7dd;
    color: #0f5132;
}

.event-item.work-event .event-type {
    background-color: #fff3cd;
    color: #664d03;
}

.event-item.personal-event .event-type {
    background-color: #cfe2ff;
    color: #084298;
}

/* Task List */
.task-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid var(--success-color);
    transition: all 0.2s ease;
    position: relative;
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: #adb5bd;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-item.high-priority {
    border-left-color: var(--danger-color);
}

.task-item.medium-priority {
    border-left-color: var(--warning-color);
}

.task-item.low-priority {
    border-left-color: var(--info-color);
}

.task-item .task-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.task-item .task-subject {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.task-item .task-due {
    font-size: 0.85rem;
    color: var(--danger-color);
    margin-bottom: 5px;
}

.task-item .task-priority {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 20px;
    background-color: #e9ecef;
    color: var(--dark-color);
}

.task-item.high-priority .task-priority {
    background-color: #f8d7da;
    color: #842029;
}

.task-item.medium-priority .task-priority {
    background-color: #fff3cd;
    color: #664d03;
}

.task-item.low-priority .task-priority {
    background-color: #cfe2ff;
    color: #084298;
}

.task-item .task-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

/* Statistics Cards */
.stat-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
}

/* Animations */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/*0000000000000000*/ 
/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu{
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}


body.dark-mode .card-header,
body.dark-mode .modal-header,
body.dark-mode .dropdown-menu {
    border-color: #333;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group-text {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

body.dark-mode .list-group-item {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .task-item,
body.dark-mode .event-item {
    background-color: #2d2d2d;
}

body.dark-mode .navbar,
body.dark-mode footer {
    background-color: #1a1a1a !important;
}

/* Theme Colors */
:root {
    --primary-color: #0d6efd;
}

body.theme-green {
    --primary-color: #198754;
}

body.theme-purple {
    --primary-color: #6f42c1;
}

body.theme-red {
    --primary-color: #dc3545;
}

/* Apply primary color to various elements */
.navbar.bg-gradient,
.card-header.bg-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color), black 20%)) !important;
}

.feature-icon.bg-primary,
.stat-icon.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Dark Mode Styles for Tasks and Settings Sections */
body.dark-mode #tasks,
body.dark-mode #settings {
    background-color: #121212 !important;
}

body.dark-mode #tasks .card,
body.dark-mode #settings .card,
body.dark-mode #tasks .modal-content,
body.dark-mode #settings .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode #tasks .card-header,
body.dark-mode #settings .card-header,
body.dark-mode #tasks .modal-header,
body.dark-mode #settings .modal-header {
    background-color: #252525;
    border-bottom-color: #333;
    color: #fff;
}

body.dark-mode #tasks .form-control,
body.dark-mode #settings .form-control,
body.dark-mode #tasks .form-select,
body.dark-mode #settings .form-select {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode #tasks .form-control:focus,
body.dark-mode #settings .form-control:focus,
body.dark-mode #tasks .form-select:focus,
body.dark-mode #settings .form-select:focus {
    background-color: #2d2d2d;
    border-color: var(--primary-color);
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

body.dark-mode #tasks .task-item,
body.dark-mode #tasks .event-item {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode #tasks .task-item:hover,
body.dark-mode #tasks .event-item:hover {
    background-color: #353535;
}

body.dark-mode #tasks .text-muted,
body.dark-mode #settings .text-muted {
    color: #aaa !important;
}

body.dark-mode #tasks .dropdown-menu,
body.dark-mode #settings .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode #tasks .dropdown-item,
body.dark-mode #settings .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode #tasks .dropdown-item:hover,
body.dark-mode #settings .dropdown-item:hover {
    background-color: #353535;
    color: #fff;
}

/* Fix for calendar in dark mode */
body.dark-mode .calendar-day {
    color: #e0e0e0;
}

body.dark-mode .calendar-day:hover {
    background-color: #353535;
}

body.dark-mode .calendar-day.other-month {
    color: #666;
}

/* Fix for task priority badges in dark mode */
body.dark-mode .task-item .task-priority {
    color: #fff !important;
}

body.dark-mode .task-item.high-priority .task-priority {
    background-color: #dc3545;
}

body.dark-mode .task-item.medium-priority .task-priority {
    background-color: #ffc107;
    color: #000 !important;
}

body.dark-mode .task-item.low-priority .task-priority {
    background-color: #0dcaf0;
}

/* Dark Mode for Features Section */
body.dark-mode #features {
    background-color: #121212 !important;
    color: #e0e0e0;
}

body.dark-mode #features .card {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode #features .card-body {
    color: #e0e0e0;
}

body.dark-mode #features .feature-icon {
    color: #fff !important;
}

body.dark-mode #features .text-muted {
    color: #aaa !important;
}

body.dark-mode #features .display-5,
body.dark-mode #features h2,
body.dark-mode #features h4,
body.dark-mode #features h6 {
    color: #fff;
}

body.dark-mode #features .bg-light {
    background-color: #1e1e1e !important;
}

/* تحسينات عامة للأزرار */
.btn {
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* تأثير الإضاءة عند التحويم */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::after {
    opacity: 1;
}

/* أزرار التنقل بين الأشهر */
#prevMonth, #nextMonth {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#prevMonth:hover, #nextMonth:hover {
    background-color: color-mix(in srgb, var(--primary-color), black 15%);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#prevMonth:active, #nextMonth:active {
    transform: scale(0.95);
}

/* أيقونات الأزرار */
#prevMonth i, #nextMonth i {
    transition: transform 0.3s ease;
}

#prevMonth:hover i {
    transform: translateX(-2px);
}

#nextMonth:hover i {
    transform: translateX(2px);
}

/* زر تصفية المهام */
#filterTasks {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#filterTasks:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#filterTasks:active {
    transform: translateY(0);
}

/* أيقونة السهم في زر التصفية */
#filterTasks::after {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

#filterTasks:hover::after {
    transform: rotate(180deg);
}

/* قائمة التصفية */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 5px !important;
}

.dropdown-item {
    padding: 8px 15px;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0 5px;
    width: auto;
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 5px 0;
}
/* تعديلات الأزرار في وضع الظلام */
body.dark-mode .btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #filterTasks {
    background-color: #2d2d2d;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode #filterTasks:hover {
    background-color: var(--primary-color);
    color: white;
}

body.dark-mode .dropdown-menu {
    background-color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-color);
}

/* تأثير النبض للزر الرئيسي */
.btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

/* تأثير التدرج اللوني */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color), black 20%));
    color: white;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color), white 10%), var(--primary-color));
}

/* تحسينات عامة لحقول الإدخال */
.form-control,
.form-select,
.form-date,
.form-time {
    font-family: 'Tajawal', sans-serif;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: none;
    background-color: #fff;
    font-size: 15px;
}

.form-control:focus,
.form-select:focus,
.form-date:focus,
.form-time:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}


/*000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/*
/* تحسين حقول التاريخ */
input[type="date"] {
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%230d6efd" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

/* تحسين حقول الوقت */
input[type="time"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%230d6efd" viewBox="0 0 16 16"><path d="M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

/* تأثيرات التحويم */
input[type="date"]:hover,
input[type="time"]:hover {
    border-color: #b0b0b0;
}

/* التأثير عند التركيز */
input[type="date"]:focus,
input[type="time"]:focus {
    border-color: var(--primary-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%230b5ed7" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
}

/* تعديلات للوضع المظلم */
body.dark-mode input[type="date"],
body.dark-mode input[type="time"],
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode input[type="date"]:focus,
body.dark-mode input[type="time"]:focus,
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    border-color: var(--primary-color);
    background-color: #2d2d2d;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/********************************0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000*/
/* تحسين قوائم التاريخ والوقت المنبثقة */
input[type="date"]::-webkit-calendar-picker-indicator{
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
/* تصميم القائمة المنبثقة */
::-webkit-datetime-edit { padding: 0.3em; }
::-webkit-datetime-edit-fields-wrapper { background: transparent; }
::-webkit-datetime-edit-text { color: var(--primary-color); padding: 0 0.2em; }
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-ampm-field {
    color: #333;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    background: rgba(var(--primary-rgb), 0.1);
}

body.dark-mode ::-webkit-datetime-edit-text { color: #aaa; }
body.dark-mode ::-webkit-datetime-edit-month-field,
body.dark-mode ::-webkit-datetime-edit-day-field,
body.dark-mode ::-webkit-datetime-edit-year-field,
body.dark-mode ::-webkit-datetime-edit-hour-field,
body.dark-mode ::-webkit-datetime-edit-minute-field,
body.dark-mode ::-webkit-datetime-edit-second-field,
body.dark-mode ::-webkit-datetime-edit-ampm-field {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
}

/* تأثيرات حركية عند التفاعل */
@keyframes inputHighlighter {
    from { background: var(--primary-color); }
    to { width: 0; background: transparent; }
}

.form-date,
.form-time {
    position: relative;
}

.form-date:after,
.form-time:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-date:focus:after,
.form-time:focus:after {
    width: 80%;
}
