:root {
    --dark-bg: #1a202c;
    --darker-bg: #0f1419;
    --light-blue: #3b82f6;
    --white: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark-bg);
    direction: rtl;
    text-align: right;
}

/* Header */
.navbar {
    background-color: var(--dark-bg) !important;
    padding: 1rem 0;
    border-bottom: 1px solid #2d3748;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row-reverse;
}

.hexagon {
    width: 24px;
    height: 24px;
    background: var(--light-blue);
    position: relative;
    transform: rotate(45deg);
}

.hexagon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 2px;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--light-blue) !important;
}

.btn-primary {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Hero Section */
.hero-section {
    background: url('/images/Home-Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: right;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: right;
}

.cloud-graphic {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--light-blue), #60a5fa);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.cloud-graphic::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--light-blue), #60a5fa);
    border-radius: 50%;
    opacity: 0.2;
}

.cloud-graphic::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 10%;
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, var(--light-blue), #60a5fa);
    border-radius: 50%;
    opacity: 0.15;
}

/* Services Section */
.services-section {
    background: var(--white);
    color: var(--dark-bg);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 3rem;
    text-align: center;
}

.service-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--light-blue);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* Grid Section */
.grid-section {
    background: var(--white);
    color: var(--dark-bg);
    padding: 5rem 0;
}

.grid-card {
    background: var(--dark-bg);
    border-radius: 1rem;
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    z-index: 1;
}

.grid-card-content {
    position: relative;
    z-index: 2;
}

.grid-icon {
    width: 2rem;
    height: 2rem;
    background: var(--light-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.grid-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-align: right;
}

.grid-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: right;
}

.grid-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    flex-direction: row-reverse;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
    color: var(--dark-bg);
    padding: 5rem 0;
}

.testimonials-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 3rem;
    text-align: right;
}

.testimonial-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--light-blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    text-align: center;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

/* Footer Logo RTL */
.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3)) contrast(1.2) brightness(1.1);
}

/* Ensure footer brand content is properly aligned for RTL */
footer.footer .footer-brand .d-flex {
    justify-content: flex-start;
}

footer.footer .footer-brand .d-flex.flex-row-reverse {
    justify-content: flex-end;
}

/* Footer brand section RTL alignment */
footer.footer .footer-brand {
    text-align: right;
}

footer.footer .footer-brand h5 {
    text-align: right;
}

.footer-text {
    color: var(--text-light);
    text-align: right;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: right;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--light-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-brand h5 {
    color: var(--white);
    font-weight: 600;
}

.footer-nav {
    margin-top: 1.5rem;
}

/* Footer specific fixes - Higher specificity to override Bootstrap */
footer.footer .row {
    margin-left: -12px !important;
    margin-right: -12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

footer.footer .col-lg-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 2rem !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    box-sizing: border-box !important;
}

footer.footer .col-md-6 {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 2rem !important;
}

footer.footer .mb-4 {
    margin-bottom: 0 !important;
}

footer.footer .g-4 > * {
    padding: 0 12px !important;
}

/* Fix map placeholder width and alignment */
footer.footer .map-placeholder {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

footer.footer .map-content {
    padding: 0.75rem !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

footer.footer .map-content p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.2rem !important;
    word-wrap: break-word !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Ensure all footer columns align properly */
footer.footer .col-lg-3 > * {
    margin-top: 0 !important;
}

footer.footer .footer-title {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

/* Force equal column widths and proper alignment */
footer.footer .row > .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Fix footer brand section to prevent width issues */
footer.footer .footer-brand {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

footer.footer .footer-nav {
    width: 100% !important;
    margin-top: 0 !important;
}

/* Contact Form */
.contact-form .form-control {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    text-align: right;
}

.contact-form .form-control:focus {
    background-color: #374151;
    border-color: var(--light-blue);
    color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
    text-align: right;
}

.contact-form .btn-primary {
    font-size: 0.9rem;
    padding: 0.75rem;
}

/* Map Placeholder */
.map-placeholder {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-radius: 0.75rem;
    overflow: visible;
    border: 1px solid #4b5563;
    height: 120px;
    width: 100%;
    box-sizing: border-box;
}

.map-container {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.map-content {
    text-align: center;
    color: var(--white);
    width: 100%;
    overflow: visible;
}

.map-content i {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.map-content p {
    font-size: 0.75rem;
    margin: 0 0 0.2rem 0;
    color: #d1d5db;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    footer.footer .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 767.98px) {
    footer.footer .col-lg-3,
    footer.footer .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    footer.footer .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    footer.footer .col-lg-3,
    footer.footer .col-md-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .map-placeholder {
        height: 100px;
    }
    
    .map-container {
        height: 100px;
    }
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    color: #9ca3af;
}

/* Privacy Page Styles */
.privacy-content {
    background: var(--white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.privacy-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
}

.privacy-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.privacy-section h2 {
    color: var(--dark-bg);
    font-weight: 600;
    text-align: right;
}

.privacy-section p {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: right;
}

.privacy-content h1 {
    color: var(--dark-bg);
    font-weight: 700;
    text-align: center;
}

/* Services Page RTL Styles */
.services-hero-section {
    background: url('/images/Home-Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white) !important;
    padding: 5rem 0 !important;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    margin: 0;
    border: none;
}

.services-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.services-hero-section .container {
    position: relative;
    z-index: 2;
}

.services-hero-section .hero-title {
    color: var(--white) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-align: right !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero-section .hero-subtitle {
    color: #e2e8f0 !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    text-align: right !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.services-graphic {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-graphic .floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.services-graphic .floating-icon:nth-child(1) {
    top: 20%;
    right: 20%;
    left: auto;
    animation-delay: 0s;
}

.services-graphic .floating-icon:nth-child(2) {
    top: 50%;
    left: 20%;
    right: auto;
    animation-delay: 1s;
}

.services-graphic .floating-icon:nth-child(3) {
    bottom: 20%;
    right: 50%;
    left: auto;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.services-grid-section {
    background: var(--white);
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--light-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue), #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 3rem;
    text-align: center;
}

.service-price {
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-blue);
}

.service-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
    margin-left: 0;
}

.service-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.services-cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
}

.services-cta-section .section-title {
    color: var(--dark-bg);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.services-cta-section .section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Login Page RTL Styles */
.login-container {
    min-height: 80vh;
    background: url('/images/Home-Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.login-container .container {
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 0;
    text-align: center;
}

.login-form .form-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    text-align: right;
}

.login-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: right;
}

.login-form .form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 0.75rem;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--light-blue);
}

.login-btn {
    background: linear-gradient(135deg, var(--light-blue), #3b82f6);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.forgot-password-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.register-text {
    color: var(--text-muted);
    margin-left: 0.5rem;
    margin-right: 0;
}

.register-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Account Layout RTL Styles */
.account-header {
    background: var(--dark-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.account-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Account Navigation RTL Styles */
.account-header .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-align: right;
}

.account-header .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

.account-header .navbar-nav .nav-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.account-header .navbar-nav .nav-link span {
    font-weight: 500;
}

/* Language Dropdown RTL Positioning */
.account-header .dropdown-menu {
    min-width: 150px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-align: right;
}

.account-header .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
}

.account-header .dropdown-item i {
    font-size: 0.875rem;
}

.account-main {
    min-height: calc(100vh - 200px);
    background: url('/images/Home-Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.account-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.account-main .container {
    position: relative;
    z-index: 2;
}

.account-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.account-footer .privacy-link {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.account-footer .privacy-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.account-footer .created-with {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Logout Page RTL Styles */
.logout-container {
    min-height: 100vh;
    background: url('/images/Home-Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.logout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.logout-container .container {
    position: relative;
    z-index: 2;
}

.logout-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logout-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    text-align: center;
}

.logout-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 0;
    text-align: center;
}

.logout-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.logout-footer {
    margin-top: 2rem;
    text-align: center;
}

.home-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.home-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Admin Pages RTL Styles */
.admin-container {
    min-height: 100vh;
    background: var(--light-bg);
    padding: 2rem 0;
}

.admin-header {
    margin-bottom: 2rem;
    text-align: right;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    text-align: right;
}

.admin-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 0;
    text-align: right;
}

.admin-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.admin-card-header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.admin-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.admin-actions .btn {
    border-radius: 0.5rem;
    font-weight: 500;
}

.admin-card-body {
    padding: 0;
}

.admin-table {
    margin: 0;
    text-align: right;
}

.admin-table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-bg);
    padding: 1rem;
    text-align: right;
}

.admin-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    text-align: right;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 500;
    color: var(--dark-bg);
}

.user-roles .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
    margin-right: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.btn-group .btn {
    margin: 0 0.125rem;
}

.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    background: var(--dark-bg);
    color: var(--white);
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
    flex-direction: row-reverse;
}

.modal-title {
    font-weight: 600;
    text-align: right;
}

.btn-close {
    filter: invert(1);
}

.privacy-link {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #60a5fa;
}

.created-with {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* RTL Specific Adjustments */
.navbar-nav {
    flex-direction: row-reverse;
}

.navbar-nav .nav-item {
    margin-left: 0;
    margin-right: 1rem;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* Bootstrap RTL Overrides */
.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

/* Text alignment for RTL */
.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}

/* Flex direction adjustments */
.d-flex {
    flex-direction: row-reverse;
}

.d-flex.flex-wrap {
    flex-direction: row-reverse;
}

/* Button groups and form elements */
.btn-group {
    flex-direction: row-reverse;
}

/* Card text alignment */
.card {
    text-align: right;
}

.card-body {
    text-align: right;
}

/* List items */
ul {
    padding-right: 0;
    padding-left: 1rem;
}

/* Icons and symbols */
.bi::before {
    display: inline-block;
}

/* Responsive adjustments for RTL */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .cloud-graphic {
        display: none;
    }
    
    .navbar-nav {
        text-align: right;
    }
    
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .footer-bottom .text-md-start {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .map-container {
        height: 120px;
    }
    
    .contact-form .form-control {
        font-size: 0.85rem;
        padding: 0.6rem;
        text-align: center;
    }
    
    .contact-form .form-control::placeholder {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .testimonials-title {
        font-size: 1.5rem;
    }
}

/* Error Pages Styles */
.error-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

.error-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.error-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1rem 0;
}

.error-message {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
}

.error-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
}

.error-actions .btn-outline-secondary {
    border: 2px solid #6b7280;
    color: #6b7280;
    background: transparent;
}

.error-actions .btn-outline-secondary:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Error Page Responsive Design */
@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-card {
        padding: 2rem 1.5rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}
