/* style-rtl.css */
:root {
    --primary-color: #1E3A8A;
    --primary-dark: #172554;
    --secondary-color: #03dac6;
    --surface-color: #ffffff;
    --background-color: #f5f5f5;
    --error-color: #b00020;
    --success-color: #2e7d32;
    --text-primary: #1a202c;
    --text-secondary: #4b5563;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    direction: rtl;
}

.sidebar {
    width: 250px;
    height: calc(100vh - 56px);
    background-color: #f8f9fa;
    position: fixed;
    top: 56px;
    right: 0;
    border-left: 1px solid #dee2e6;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.sidebar .nav-link {
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    display: block;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.content {
    margin-right: 250px;
    padding: 20px;
}

/* Navbar styles */
.navbar {
    background-color: #042344 !important;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #e3e3e3 !important;
    font-size: 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .material-symbols-outlined {
    font-size: 1.75rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-nav a {
    color: #e3e3e3 !important;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav a:hover {
    color: #ddd !important;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    background-color: #042344;
    min-width: 100px;
    box-shadow: var(--shadow-md);
    z-index: 1;
    right: 0; /* RTL: dropdown opens to the left */
    border-radius: 8px;
}

.language-dropdown-content a {
    color: #e3e3e3 !important;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-dropdown-content a:hover {
    color: #ddd !important;
    background-color: #031d36;
}

.language-dropdown:hover .language-dropdown-content {
    display: block;
}

.mobile-nav {
    background-color: #042344 !important;
    border-top: 1px solid #6c757d;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.mobile-nav a {
    color: #e3e3e3 !important;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav a:hover {
    color: #ddd !important;
}

.navbar button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.navbar button:hover {
    background-color: var(--primary-dark);
}

/* Material Design form styles */
.submit-page .form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

.submit-page .card {
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.submit-page .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.submit-page h1 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-page h1 .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color);
}

.submit-page .payment-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

.submit-page .payment-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-page .payment-link:active {
    transform: translateY(0);
}

.submit-page .payment-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.submit-page .payment-link:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.submit-page .payment-link .material-symbols-outlined {
    font-size: 1.25rem;
}

.submit-page input,
.submit-page button,
.submit-page a.button {
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.submit-page input {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem; /* RTL: padding adjusted */
    background-color: #fafafa;
}

.submit-page input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
}

.submit-page label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-page label .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.submit-page .error-message {
    background-color: #fef2f2;
    color: var(--error-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-page .error-message .material-symbols-outlined {
    font-size: 1.25rem;
}

.submit-page .success-message {
    background-color: #f0fdf4;
    color: var(--success-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-page .success-message .material-symbols-outlined {
    font-size: 1.25rem;
}

.submit-page button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-page button[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-page button[type="submit"]:active {
    transform: translateY(0);
}

.submit-page button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.submit-page button[type="submit"]:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.submit-page button[type="submit"] .material-symbols-outlined {
    font-size: 1.25rem;
}

.submit-page a.cancel {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-page a.cancel:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-page a.cancel .material-symbols-outlined {
    font-size: 1.25rem;
}

.submit-page .file-upload {
    border: 1px dashed #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #fafafa;
    position: relative;
    padding-right: 2.5rem; /* RTL: icon on the right */
}

.submit-page .file-upload:hover {
    border-color: var(--primary-color);
}

.submit-page .file-upload::before {
    content: 'upload_file';
    font-family: 'Material Symbols Outlined';
    font-size: 1.25rem;
    color: var(--text-secondary);
    position: absolute;
    right: 0.75rem; /* RTL: icon on the right */
    top: 50%;
    transform: translateY(-50%);
}

/* Login-specific styles */
.form-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-title .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color);
}

.form-input {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem; /* RTL: padding adjusted */
    background-color: #fafafa;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.notification {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.error-message {
    background-color: #fef2f2;
    color: var(--error-color);
}

.notification.success-message {
    background-color: #f0fdf4;
    color: var(--success-color);
}

.notification .material-symbols-outlined {
    font-size: 1.25rem;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    pointer-events: none;
}

.submit-button:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.form-links {
    text-align: center;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .content {
        margin-right: 200px;
    }
}

@media (max-width: 640px) {
    .navbar-nav {
        display: none;
    }
    .navbar .container {
        padding: 0 0.5rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-brand img {
        height: 2.5rem;
        width: 2.5rem;
    }
    .mobile-nav a {
        font-size: 1rem;
    }
    .submit-page .form-container {
        padding: 1rem;
    }
    .submit-page .card {
        padding: 1.5rem;
    }
    .submit-page h1 {
        font-size: 1.5rem;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        top: 0;
    }
    .content {
        margin-right: 0;
    }
}