@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --presidential-primary: #8B0000;
    --presidential-primary-dark: #5C0000;
    --presidential-primary-light: #B22222;
    --presidential-gold: #C9A84C;
    --presidential-gold-light: #E8D48B;
    --presidential-gold-dark: #A8882E;
    --presidential-bg-dark: #0A0A0F;
    --presidential-bg-card: #111118;
    --presidential-bg-card-hover: #1A1A24;
    --presidential-text-primary: #F0EDE8;
    --presidential-text-secondary: #9A958C;
    --presidential-border: #1E1E2A;
    --presidential-border-light: #2A2A3A;
    --presidential-success: #2ECC71;
    --presidential-shadow: 0 8px 32px rgba(0,0,0,0.4);
    --presidential-radius: 16px;
    --presidential-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--presidential-bg-dark);
    color: var(--presidential-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.presidential-loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--presidential-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.presidential-loader-overlay.presidential-hidden {
    opacity: 0;
    visibility: hidden;
}
.presidential-loader-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--presidential-border);
    border-top-color: var(--presidential-gold);
    animation: presidential-spin 0.8s linear infinite;
}
@keyframes presidential-spin {
    to { transform: rotate(360deg); }
}

.presidential-form-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.presidential-form-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,15,0.7);
    backdrop-filter: blur(2px);
}

.presidential-form-container {
    width: 100%;
    max-width: 420px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--presidential-border);
    border-radius: var(--presidential-radius);
    padding: 36px 28px;
    box-shadow: var(--presidential-shadow);
    position: relative;
    overflow: hidden;
}
.presidential-form-container,
.presidential-form-container * {
    color: #fff !important;
}
.presidential-form-container .presidential-input-icon {
    opacity: 0.8;
}
.presidential-form-container .presidential-input-wrapper input,
.presidential-form-container .presidential-input-wrapper select {
    background: rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.presidential-form-container .presidential-input-wrapper input::placeholder {
    color: rgba(255,255,255,0.5);
    text-align: right;
}
.presidential-form-container .presidential-input-wrapper input {
    text-align: right;
}
.presidential-form-container .presidential-input-wrapper select option {
    background: #1a1a1a;
    color: #fff;
}
.presidential-form-container .presidential-checkbox .presidential-checkbox-text {
    color: rgba(255,255,255,0.85) !important;
}
.presidential-form-container .presidential-terms-list li {
    color: rgba(255,255,255,0.8) !important;
}
.presidential-form-container .presidential-form-footer {
    border-top-color: rgba(255,255,255,0.1);
}

.presidential-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--presidential-primary), var(--presidential-gold), var(--presidential-primary));
}

.presidential-crest {
    margin-bottom: 12px;
}
.presidential-crest svg {
    filter: drop-shadow(0 0 12px rgba(201,168,76,0.2));
}

.presidential-form-header {
    text-align: center;
    margin-bottom: 28px;
}
.presidential-form-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.presidential-form-header p {
    font-size: 13px;
    color: var(--presidential-text-secondary);
    font-weight: 400;
}

.presidential-input-group {
    margin-bottom: 18px;
}
.presidential-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--presidential-text-secondary);
    margin-bottom: 6px;
}
.presidential-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.presidential-input-icon {
    position: absolute;
    left: 14px;
    color: var(--presidential-text-secondary);
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0.6;
}
.presidential-input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--presidential-border-light);
    border-radius: var(--presidential-radius-sm);
    color: var(--presidential-text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}
.presidential-input-wrapper input:focus {
    border-color: var(--presidential-gold);
    background: rgba(201,168,76,0.04);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.presidential-input-wrapper input::placeholder {
    color: var(--presidential-text-secondary);
    opacity: 0.5;
    font-weight: 300;
}
.presidential-input-wrapper input.presidential-error {
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.presidential-input-wrapper select {
    width: 100%;
    padding: 14px 44px 14px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--presidential-border-light);
    border-radius: var(--presidential-radius-sm);
    color: var(--presidential-text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A958C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
}
.presidential-input-wrapper select:focus {
    border-color: var(--presidential-gold);
    background-color: rgba(201,168,76,0.04);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.presidential-input-wrapper select.presidential-error {
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}
.presidential-input-wrapper select option {
    background: var(--presidential-bg-card);
    color: var(--presidential-text-primary);
}
html[dir="rtl"] .presidential-input-wrapper select {
    padding: 14px 44px 14px 14px;
    background-position: right 14px center;
}

.presidential-terms {
    background: rgba(201,168,76,0.04);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--presidential-radius-sm);
    padding: 16px 18px;
    margin-bottom: 18px;
}
.presidential-terms-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--presidential-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.presidential-terms-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}
.presidential-terms-list li {
    position: relative;
    padding-right: 20px;
    font-size: 13px;
    color: var(--presidential-text-secondary);
    line-height: 1.7;
}
.presidential-terms-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--presidential-gold);
    border-radius: 50%;
    opacity: 0.6;
}
html[dir="ltr"] .presidential-terms-list li {
    padding-right: 0;
    padding-left: 20px;
}
html[dir="ltr"] .presidential-terms-list li::before {
    right: auto;
    left: 0;
}

.presidential-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-top: 2px;
}
.presidential-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.presidential-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--presidential-border-light);
    border-radius: 5px;
    background: transparent;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.presidential-checkbox input:checked ~ .presidential-checkmark {
    background: var(--presidential-gold);
    border-color: var(--presidential-gold);
}
.presidential-checkbox input:checked ~ .presidential-checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--presidential-bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}
.presidential-checkbox .presidential-checkbox-text {
    font-size: 12px;
    color: var(--presidential-text-secondary);
    line-height: 1.5;
}
.presidential-checkbox input:checked ~ .presidential-checkbox-text {
    color: var(--presidential-text-primary);
}

.presidential-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--presidential-primary), var(--presidential-primary-dark));
    border: none;
    border-radius: var(--presidential-radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    letter-spacing: 0.3px;
}
.presidential-submit-btn:hover {
    background: linear-gradient(135deg, var(--presidential-primary-light), var(--presidential-primary));
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139,0,0,0.3);
}
.presidential-submit-btn:active {
    transform: translateY(0);
}
.presidential-submit-btn.presidential-loading .presidential-btn-text { opacity: 0.3; }
.presidential-submit-btn .presidential-btn-loader { display: none; }
.presidential-submit-btn.presidential-loading .presidential-btn-loader { display: flex; }
.presidential-submit-btn .presidential-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    animation: presidential-spin 0.6s linear infinite;
}

.presidential-success-message {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: presidential-fadeInUp 0.5s ease;
}
.presidential-success-message.presidential-show { display: block; }
.presidential-success-message .presidential-success-icon {
    color: var(--presidential-success);
    margin-bottom: 12px;
    animation: presidential-scaleIn 0.4s ease;
}
.presidential-success-message h2 {
    font-size: 20px;
    margin-bottom: 4px;
}
.presidential-success-message p {
    color: var(--presidential-text-secondary);
    font-size: 14px;
}

.presidential-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--presidential-border);
}
.presidential-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--presidential-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}
.presidential-dashboard-link:hover {
    background: rgba(201,168,76,0.08);
    gap: 12px;
}

.presidential-dashboard-page {
    min-height: 100vh;
    background: var(--presidential-bg-dark);
}

.presidential-dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--presidential-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.presidential-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.presidential-header-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.presidential-header-left h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.presidential-header-subtitle {
    font-size: 11px;
    color: var(--presidential-text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.presidential-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.presidential-header-date {
    font-size: 13px;
    color: var(--presidential-text-secondary);
    font-weight: 500;
}
.presidential-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--presidential-border-light);
    border-radius: 8px;
    color: var(--presidential-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.presidential-btn-outline:hover {
    border-color: var(--presidential-gold);
    background: rgba(201,168,76,0.06);
    color: var(--presidential-gold);
}

.presidential-dashboard-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px;
}

.presidential-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.presidential-stat-card {
    background: var(--presidential-bg-card);
    border: 1px solid var(--presidential-border);
    border-radius: var(--presidential-radius-sm);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.presidential-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}
.presidential-stat-card.presidential-total::after { background: linear-gradient(90deg, var(--presidential-gold), var(--presidential-gold-light)); }
.presidential-stat-card.presidential-today::after { background: linear-gradient(90deg, var(--presidential-primary), var(--presidential-primary-light)); }
.presidential-stat-card.presidential-week::after { background: linear-gradient(90deg, #2ECC71, #27AE60); }
.presidential-stat-card.presidential-month::after { background: linear-gradient(90deg, #3498DB, #2980B9); }
.presidential-stat-card:hover {
    border-color: var(--presidential-border-light);
    background: var(--presidential-bg-card-hover);
    transform: translateY(-2px);
}
.presidential-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.presidential-stat-card.presidential-total .presidential-stat-icon { background: rgba(201,168,76,0.12); color: var(--presidential-gold); }
.presidential-stat-card.presidential-today .presidential-stat-icon { background: rgba(139,0,0,0.2); color: var(--presidential-primary-light); }
.presidential-stat-card.presidential-week .presidential-stat-icon { background: rgba(46,204,113,0.12); color: #2ECC71; }
.presidential-stat-card.presidential-month .presidential-stat-icon { background: rgba(52,152,219,0.12); color: #3498DB; }
.presidential-stat-info {
    display: flex;
    flex-direction: column;
}
.presidential-stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}
.presidential-stat-label {
    font-size: 12px;
    color: var(--presidential-text-secondary);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presidential-dashboard-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
}

.presidential-card {
    background: var(--presidential-bg-card);
    border: 1px solid var(--presidential-border);
    border-radius: var(--presidential-radius);
    overflow: hidden;
}
.presidential-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--presidential-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.presidential-card-header h2 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--presidential-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.presidential-card-header h2 svg { color: var(--presidential-gold); }

.presidential-calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.presidential-cal-month-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--presidential-text-primary);
    min-width: 100px;
    text-align: center;
}
.presidential-cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--presidential-border-light);
    background: transparent;
    color: var(--presidential-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.presidential-cal-nav-btn:hover {
    border-color: var(--presidential-gold);
    color: var(--presidential-gold);
    background: rgba(201,168,76,0.06);
}

.presidential-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 14px 18px;
}
.presidential-cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--presidential-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
}
.presidential-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    gap: 1px;
    min-height: 38px;
}
.presidential-cal-day .presidential-day-count {
    font-size: 8px;
    font-weight: 700;
    opacity: 0.8;
    line-height: 1;
}
.presidential-cal-day.presidential-today {
    border: 1.5px solid var(--presidential-gold) !important;
    font-weight: 700;
}
.presidential-cal-day.presidential-empty { cursor: default; }
.presidential-cal-day.presidential-other-month { opacity: 0.3; }

.presidential-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(46,204,113,0.1);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: 8px;
    color: #2ECC71;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.presidential-btn-export:hover {
    background: rgba(46,204,113,0.18);
    border-color: rgba(46,204,113,0.35);
    transform: translateY(-1px);
}

.presidential-table-wrapper {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}
.presidential-data-table {
    width: 100%;
    border-collapse: collapse;
}
.presidential-data-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.presidential-data-table th {
    background: var(--presidential-bg-card-hover);
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--presidential-text-secondary);
    border-bottom: 1px solid var(--presidential-border);
}
.presidential-data-table td {
    padding: 11px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--presidential-border);
    color: var(--presidential-text-primary);
}
.presidential-data-table tbody tr {
    transition: background 0.2s ease;
}
.presidential-data-table tbody tr:hover {
    background: rgba(201,168,76,0.03);
}
.presidential-data-table tbody tr:last-child td {
    border-bottom: none;
}

.presidential-table-footer {
    padding: 12px 22px;
    border-top: 1px solid var(--presidential-border);
    font-size: 12px;
    color: var(--presidential-text-secondary);
}

.presidential-calendar-legend {
    display: flex;
    gap: 16px;
    padding: 0 18px 16px;
    flex-wrap: wrap;
}
.presidential-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--presidential-text-secondary);
}
.presidential-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.presidential-lang-toggle-single {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--presidential-bg-card-hover);
    border: 1px solid var(--presidential-border-light);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--presidential-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    z-index: 2;
}
.presidential-lang-toggle-single:hover {
    border-color: var(--presidential-gold);
    color: var(--presidential-gold);
}
.presidential-lang-toggle-single .presidential-lang-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
html[dir="rtl"] .presidential-lang-toggle-single {
    right: auto;
    left: 16px;
}
.presidential-lang-toggle {
    display: flex;
    background: var(--presidential-bg-card-hover);
    border: 1px solid var(--presidential-border-light);
    border-radius: 8px;
    overflow: hidden;
}
.presidential-lang-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    border: none;
    color: var(--presidential-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}
.presidential-lang-btn.presidential-active {
    background: var(--presidential-gold);
    color: var(--presidential-bg-dark);
}
.presidential-lang-btn:not(.presidential-active):hover {
    color: var(--presidential-text-primary);
}

html[dir="rtl"] .presidential-input-wrapper input {
    padding: 14px 44px 14px 14px;
}
html[dir="rtl"] .presidential-input-icon {
    left: auto;
    right: 14px;
}
html[dir="rtl"] .presidential-data-table th,
html[dir="rtl"] .presidential-data-table td {
    text-align: right;
}
html[dir="rtl"] .presidential-header-left {
    flex-direction: row-reverse;
}
html[dir="rtl"] .presidential-stat-card {
    flex-direction: row-reverse;
}
html[dir="rtl"] .presidential-card-header {
    flex-direction: row-reverse;
}
html[dir="rtl"] .presidential-card-header h2 svg:first-child {
    margin-left: 0;
    margin-right: 0;
}
html[dir="rtl"] .presidential-btn-export svg,
html[dir="rtl"] .presidential-btn-outline svg,
html[dir="rtl"] .presidential-dashboard-link svg {
    transform: scaleX(-1);
}
html[dir="rtl"] .presidential-cal-nav-btn svg {
    transform: scaleX(-1);
}

.presidential-animate-fade-in {
    animation: presidential-fadeIn 0.6s ease both;
}
.presidential-animate-slide-up {
    animation: presidential-slideUp 0.5s ease both;
}
.presidential-animate-slide-down {
    animation: presidential-slideDown 0.5s ease both;
}

@keyframes presidential-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes presidential-slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes presidential-slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes presidential-fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes presidential-scaleIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

.presidential-filter-bar {
    margin-bottom: 20px;
}
.presidential-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--presidential-bg-card);
    border: 1px solid var(--presidential-border);
    border-radius: var(--presidential-radius-sm);
    padding: 16px 20px;
}
.presidential-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    flex: 1;
}
.presidential-filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--presidential-text-secondary);
}
.presidential-filter-group input {
    padding: 9px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--presidential-border-light);
    border-radius: 6px;
    color: var(--presidential-text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease;
}
.presidential-filter-group input:focus {
    border-color: var(--presidential-gold);
}
.presidential-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.presidential-btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 6px;
    color: var(--presidential-gold);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.presidential-btn-filter:hover {
    background: rgba(201,168,76,0.18);
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-1px);
}

.presidential-cal-day.presidential-cal-range-start,
.presidential-cal-day.presidential-cal-range-end {
    background: var(--presidential-gold) !important;
    color: #1a1a2e !important;
    border-color: var(--presidential-gold) !important;
    box-shadow: 0 0 12px rgba(201,168,76,0.4);
    position: relative;
    z-index: 2;
    transform: scale(1.05);
}
.presidential-cal-day.presidential-cal-range {
    background: rgba(201,168,76,0.2) !important;
    border-color: rgba(201,168,76,0.3) !important;
    border-radius: 0;
}
.presidential-cal-day.presidential-cal-range-start {
    border-radius: 8px 0 0 8px;
}
.presidential-cal-day.presidential-cal-range-end {
    border-radius: 0 8px 8px 0;
}
html[dir="rtl"] .presidential-cal-day.presidential-cal-range-start {
    border-radius: 0 8px 8px 0;
}
html[dir="rtl"] .presidential-cal-day.presidential-cal-range-end {
    border-radius: 8px 0 0 8px;
}

.presidential-cal-range-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--presidential-text-secondary);
    margin-top: -8px;
    margin-bottom: 12px;
    padding: 0 4px;
    flex-wrap: wrap;
    min-height: 28px;
}
.presidential-cal-range-info .presidential-clear-range {
    background: none;
    border: 1px solid var(--presidential-border-light);
    border-radius: 4px;
    color: var(--presidential-text-secondary);
    font-size: 11px;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.presidential-cal-range-info .presidential-clear-range:hover {
    border-color: var(--presidential-gold);
    color: var(--presidential-gold);
}

@media (max-width: 1024px) {
    .presidential-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .presidential-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .presidential-form-container {
        padding: 28px 18px;
    }
    .presidential-form-header h1 { font-size: 19px; }
    .presidential-form-container { padding: 28px 16px; }
    .presidential-dashboard-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .presidential-header-left h1 { font-size: 15px; }
    .presidential-header-date { display: none; }
    .presidential-dashboard-content { padding: 16px; }
    .presidential-stats-grid { gap: 10px; }
    .presidential-stat-card { padding: 14px 16px; }
    .presidential-stat-number { font-size: 22px; }
    .presidential-stat-icon { width: 40px; height: 40px; }
    .presidential-stat-icon svg { width: 22px; height: 22px; }
    .presidential-card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .presidential-card-header h2 { font-size: 12px; }
    .presidential-calendar-grid { padding: 10px 12px; gap: 2px; }
    .presidential-cal-day { font-size: 11px; min-height: 32px; }
    .presidential-data-table th,
    .presidential-data-table td { padding: 8px 10px; font-size: 12px; }
    .presidential-btn-export { padding: 6px 12px; font-size: 11px; }
    .presidential-header-right .presidential-btn-outline { padding: 6px 12px; font-size: 12px; }
    .presidential-filter-row { flex-direction: column; padding: 14px; }
    .presidential-filter-group { min-width: 100%; }
    .presidential-filter-actions { width: 100%; }
    .presidential-filter-actions button { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
    .presidential-stats-grid { grid-template-columns: 1fr 1fr; }
    .presidential-form-container { padding: 20px 14px; border-radius: 12px; }
}
