/* Main Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

body.ltr {
    direction: ltr;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 200px;
    margin: 0 auto;
}

h1 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 1rem;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

body.rtl .language-switcher {
    right: auto;
    left: 20px;
}

/* Form Container */
.form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required-field::after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #293459;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* File Upload */
.file-upload {
    border: 2px dashed #ced4da;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* Terms Container */
.terms-container {
   /* max-height: 300px;*/
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

/* Submit Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .language-switcher {
        position: relative;
        top: 0;
        right: 0;
        text-align: right;
        margin-bottom: 1rem;
    }
    
    body.rtl .language-switcher {
        right: auto;
        left: 0;
        text-align: left;
    }
}

/* File List Display */
#file_list {
    margin-top: 1rem;
}

#file_list h6 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

#file_list .list-group-item {
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
}

/* Form Validation Styles */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger-color);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* TinyMCE Customization */
.tox-tinymce {
    border-radius: var(--border-radius) !important;
}

/* Thank You Page Styles */
.thank-you-container {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thank-you-container h2 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.tracking-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: left;
}

body.rtl .tracking-info {
    text-align: right;
}

.tracking-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--secondary-color);
    color: white;
    min-height: 100vh;
    padding-top: 2rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

.admin-content {
    padding: 2rem;
}

.admin-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.admin-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-table th {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-review {
    background-color: #b8daff;
    color: #004085;
}

.status-accepted {
    background-color: #c3e6cb;
    color: #155724;
}

.status-rejected {
    background-color: #f5c6cb;
    color: #721c24;
}

.status-info {
    background-color: #000000;
    color: #ffffff;
}



/* Login Page */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 150px;
}

.forgot-password {
    text-align: right;
    margin-top: 1rem;
}

body.rtl .forgot-password {
    text-align: left;
}
