/* إعدادات عامة */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #ff6b35;
    --dark-blue: #0d1b2a;
    --light-blue: #2a5298;
    --orange: #ff6b35;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --dark-gray: #333333;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

body[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-brand .logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand .logo-icon {
    font-size: 2rem;
    color: var(--white);
}

.nav-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    box-shadow: none;
    font-size: 0.9rem;
}

.nav-menu a.btn-primary:hover {
    background: var(--light-blue);
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.nav-menu a.nav-account-link {
    color: var(--orange);
    font-weight: 600;
}

.nav-menu a.nav-account-link:hover {
    color: #e55a2b;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: var(--transition);
}

/* Profile Dropdown */
.profile-menu {
    position: relative;
}

.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: var(--transition);
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.profile-btn:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.profile-btn i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.profile-name {
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1000;
    animation: fadeInDown 0.2s ease;
}

body[dir="rtl"] .profile-dropdown-content {
    left: auto;
    right: 0;
}

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

/* Keep dropdown open when hovering over it */
.profile-dropdown-content:hover {
    display: block;
}

/* Add a small gap to prevent mouse from leaving */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    z-index: 999;
}

.profile-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}

.profile-dropdown-content a:last-child {
    border-bottom: none;
}

.profile-dropdown-content a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.profile-dropdown-content a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--orange);
    color: var(--white);
}

.btn-secondary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide[style*="gradient"] {
    background-size: 100% 100%;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.slide-brackets {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
}

.slide-brackets .bracket {
    position: absolute;
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.6;
}

.slide-brackets .bracket.top-left {
    top: 0;
    left: 0;
}

.slide-brackets .bracket.top-right {
    top: 0;
    right: 0;
}

.slide-brackets .bracket.bottom-left {
    bottom: 0;
    left: 0;
}

.slide-brackets .bracket.bottom-right {
    bottom: 0;
    right: 0;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-slider {
    background: var(--orange);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-slider:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-slider-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-slider-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.dot:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.7);
}

/* Slider Navigation Arrows */
.slider-arrow {
    display: none;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--orange);
    border: none;
    border-radius: 5px;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Hero Section (Fallback) */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.clients-header {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.clients-brackets {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    height: 100%;
    pointer-events: none;
}

.clients-brackets .bracket {
    position: absolute;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.6;
}

.clients-brackets .bracket.top-left {
    top: -10px;
    left: -20px;
}

.clients-brackets .bracket.bottom-right {
    bottom: -10px;
    right: -20px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.clients-header {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.clients-brackets {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    height: 100%;
    pointer-events: none;
}

.clients-brackets .bracket {
    position: absolute;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.6;
}

.clients-brackets .bracket.top-left {
    top: -10px;
    left: -20px;
}

.clients-brackets .bracket.bottom-right {
    bottom: -10px;
    right: -20px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-description {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-meta {
    margin-bottom: 1rem;
}

.capacity-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.capacity-badge.large {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
}

/* Project Detail */
.project-detail {
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--gray);
}

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

.project-detail-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description-full {
    margin: 2rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-video {
    margin-top: 3rem;
}

.video-container {
    margin-top: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Complaints Page */
.complaints-page {
    padding: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.complaint-hint {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
    border-right: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    direction: rtl;
}

.complaint-hint .hint-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.complaint-hint .hint-content {
    flex: 1;
}

.complaint-hint .hint-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.complaint-hint .hint-content p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.complaint-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.complaint-form .form-group {
    margin-bottom: 1.5rem;
}

.complaint-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.complaint-form .required {
    color: var(--error);
}

.complaint-form input,
.complaint-form select,
.complaint-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.complaint-form input:focus,
.complaint-form select:focus,
.complaint-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.complaint-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Contact Page */
.contact-page {
    padding: 40px 0;
}

.contact-content {
    display: grid;
    gap: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.btn-location {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-location:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
}

.branches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.branch-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.branch-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.branch-card p {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.map-section {
    margin-top: 3rem;
}

/* Guides Page */
.guides-page {
    padding: 40px 0;
}

.guides-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.meter-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.meter-type-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.meter-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.meter-type-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.meter-type-image img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.meter-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meter-placeholder .icon {
    font-size: 4rem;
    color: var(--gray);
}

.meter-type-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.meter-type-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Guide Detail Page */
.guide-detail-page {
    padding: 40px 0;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.guide-image {
    margin-bottom: 1rem;
    text-align: center;
}

.guide-image img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.guide-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-large {
    font-size: 5rem;
    display: inline-block;
    color: var(--gray);
}

.guide-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.guide-pages-list {
    margin-top: 3rem;
    direction: rtl;
}

.guide-pages-list h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: right;
}

.pages-table-container {
    background: var(--white);
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-x: auto;
    direction: rtl;
}

.pages-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    text-align: right;
}

.pages-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.pages-table th:first-child {
    border-top-right-radius: var(--border-radius);
}

.pages-table th:last-child {
    border-top-left-radius: var(--border-radius);
}

.pages-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    text-align: right;
}

.pages-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.pages-table tbody tr:nth-child(odd) {
    background: var(--white);
}

.pages-table tbody tr:last-child td:first-child {
    border-bottom-right-radius: var(--border-radius);
}

.pages-table tbody tr:last-child td:last-child {
    border-bottom-left-radius: var(--border-radius);
}

.pages-table tbody tr:last-child td {
    border-bottom: none;
}

.pages-table tr:hover {
    background: #f0f7ff !important;
    transition: background-color 0.2s ease;
}

.pages-table td strong {
    color: var(--dark);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.pages-table td p {
    margin: 0;
    line-height: 1.6;
}

.pages-table td:first-child {
    min-width: 300px;
    max-width: 500px;
}

.pages-table td:nth-child(2) {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 150px;
    white-space: nowrap;
}

.pages-table td:last-child {
    text-align: center;
    min-width: 150px;
}

.page-number-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.guide-page-detail {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.page-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.page-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-description {
    margin: 2rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--gray);
}

.page-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Invoice Inquiry Page */
.invoice-inquiry-page {
    padding: 40px 0;
    direction: rtl;
}

.inquiry-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.inquiry-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.inquiry-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.inquiry-form .form-group {
    margin-bottom: 1.5rem;
}

.inquiry-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.inquiry-form input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    direction: ltr;
    text-align: left;
}

.inquiry-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.result-container {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

.result-success,
.result-error {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.result-success {
    border-top: 4px solid var(--success);
}

.result-error {
    border-top: 4px solid var(--error);
}

.result-success h3,
.result-error h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.result-message {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.result-data {
    margin-top: 1.5rem;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    text-align: right;
}

.result-table th {
    background: var(--light-gray);
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    width: 40%;
}

.result-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--dark);
}

.result-table tr:last-child td,
.result-table tr:last-child th {
    border-bottom: none;
}

.result-table pre {
    margin: 0;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 5px;
    font-size: 0.9rem;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.text-muted {
    color: var(--gray);
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customer Info */
.customer-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.customer-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.customer-name,
.total-amount {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.customer-name strong,
.total-amount strong {
    display: inline-block;
    min-width: 150px;
}

.total-amount .amount-value {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Payment Hint */
.payment-hint {
    background: #e8f4f8;
    border-right: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    direction: rtl;
}

.payment-hint i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.payment-hint p {
    margin: 0;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.payment-hint strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Invoice Cards */
.invoices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .invoices-grid {
        grid-template-columns: 1fr;
    }
}

.invoice-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid #e5e5e5;
}

.invoice-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.invoice-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f0f0f0;
    direction: rtl;
}

.invoice-field:last-of-type:not(:has(+ .btn-pay)) {
    border-bottom: none;
}

.invoice-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.field-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.field-value {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
}

.meter-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.amount-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.status-paid {
    color: var(--success);
}

.status-pending {
    color: var(--warning);
}

.status-overdue {
    color: var(--error);
}

.btn-pay {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-pay:hover {
    background: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-pay:active {
    transform: translateY(0);
}

.no-invoices {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.no-invoices p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .invoices-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.auth-box {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease-out;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.auth-box .form-group {
    margin-bottom: 1.5rem;
}

.auth-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.auth-box input[type="text"]:focus,
.auth-box input[type="email"]:focus,
.auth-box input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: var(--white);
}

.auth-box .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link a:hover {
    text-decoration: underline;
    color: var(--light-blue);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

/* Admin & User Dashboard Styles */
.admin-container,
.user-container {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.admin-header,
.user-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1,
.user-header h1,
.page-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.admin-section,
.user-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.admin-section h2,
.user-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary-color);
    position: sticky;
    top: 0;
}

table tr:hover {
    background: var(--light-gray);
}

table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.status-in_progress {
    background: #cfe2ff;
    color: #084298;
}

.status-resolved {
    background: #d1e7dd;
    color: #0f5132;
}

.status-closed {
    background: #f8d7da;
    color: #842029;
}

.status-active {
    background: #d1e7dd;
    color: #0f5132;
}

.status-inactive {
    background: #f8d7da;
    color: #842029;
}

.status-maintenance {
    background: #fff3cd;
    color: #856404;
}

.status-suspended {
    background: #f8d7da;
    color: #842029;
}

.status-terminated {
    background: #6c757d;
    color: var(--white);
}

.admin-menu,
.user-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-menu-card,
.user-menu-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 2px solid transparent;
}

.admin-menu-card:hover,
.user-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.admin-menu-card h3,
.user-menu-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.admin-menu-card p,
.user-menu-card p {
    color: var(--gray);
    margin: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray);
}

/* Form Styles for Admin/User Pages */
.admin-section .form-group,
.user-section .form-group {
    margin-bottom: 1.5rem;
}

.admin-section label,
.user-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.admin-section input[type="text"],
.admin-section input[type="email"],
.admin-section input[type="password"],
.admin-section input[type="number"],
.admin-section input[type="url"],
.admin-section select,
.admin-section textarea,
.user-section input[type="text"],
.user-section input[type="email"],
.user-section input[type="password"],
.user-section input[type="number"],
.user-section input[type="url"],
.user-section select,
.user-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.admin-section input:focus,
.admin-section select:focus,
.admin-section textarea:focus,
.user-section input:focus,
.user-section select:focus,
.user-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.admin-section textarea,
.user-section textarea {
    resize: vertical;
    min-height: 120px;
}

/* Slider Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slider-dots {
        right: 20px;
        bottom: 20px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
    
    .slide-brackets .bracket {
        font-size: 1.5rem;
    }
    
    .btn-slider {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .slide-buttons {
        gap: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-name {
        display: none;
    }
    
    .profile-dropdown-content {
        min-width: 180px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }
    
    .client-logo {
        max-width: 150px;
        height: 100px;
        padding: 1rem;
    }
    
    .clients-brackets .bracket {
        font-size: 1.5rem;
    }

    .admin-header,
    .user-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-menu,
    .user-menu {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-section,
    .user-section {
        padding: 1.5rem;
    }
    
    .nav-menu a.btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

