
html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: sans-serif;
    background: #f8f9fa;
    padding-top: 0; /* احذف الـ padding */
    padding-bottom: 0; /* احذف الـ padding */
    overflow: auto; /* غير hidden إلى auto */
}
/* HEADER & FOOTER */
.main-header, .main-footer {
    right: 0;
    left: 0;
    background: #fff;
    z-index: 1050;
    border: 1px solid #000 !important;
}

.main-header {
    position: relative; /* أو static */
    height: 100px;
    z-index: 1050;
}

.main-footer {
    position: relative; /* أو static */
    height: auto;
    min-height: 60px;
    z-index: 1050;
}

/* Mobile spacing fix */

/* CONTENT */
.page-content {
    height: 100%;
}

/* HORIZONTAL LONG MENU ON LEFT - طول كامل الصفحة */
.horizontal-long-menu {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item-horizontal {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .menu-item-horizontal:last-child {
        border-bottom: none;
    }

    .menu-item-horizontal:hover {
        background-color: #f8f9fa;
        color: #269c05;
        padding-right: 35px;
    }

    .menu-item-horizontal.active {
        background-color: #f0f7ff;
        border-right: 4px solid #269c05;
        color: #269c05;
        font-weight: bold;
    }

.menu-icon-horizontal {
    margin-left: 15px;
    font-size: 1.4rem;
    color: #269c05;
}

.menu-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 0;
    text-align: center;
}

/* SERVICE CARD ON RIGHT */
.service-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 22px;
    font-weight: bold;
    color: #269c05;
    /* padding: 20px; */
    border-bottom: 1px solid #ddd;
    margin: 0;
    padding-bottom: 15px;
}

.empty-service-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #6c757d;
    font-size: 1.2rem;
}

.navbar-collapse {
    background: #fff;
}

/* Mobile menu spacing */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 10px;
        padding: 15px;
        border-top: 1px solid #ddd;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }

    .horizontal-long-menu {
        margin-bottom: 20px;
        height: auto;
    }

    .service-card {
        height: auto;
        min-height: 400px;
        margin-bottom: 20px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        border-radius: 0 0 8px 8px;
    }
}

/* LOGIN */
.login-box, .register-box {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.btn-login {
    background: #269c05;
    color: #fff;
}

.btn-sanad {
    background: #4CAF50;
    color: #fff;
}

/* LINKS */
.custom-link {
    color: #269c05;
    text-decoration: none;
    font-weight: 500;
}

    .custom-link:hover {
        text-decoration: underline;
    }

.btn-outline-custom {
    border: 1px solid #269c05;
    color: #269c05;
}

    .btn-outline-custom:hover {
        background-color: #269c05;
        color: #fff;
    }

.section-title {
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
}

.service-list {
    padding-right: 20px;
}

    .service-list li {
        line-height: 1.8;
        margin-bottom: 8px;
    }

/* Registration Type Selection */
.type-selection {
    text-align: center;
    margin-bottom: 20px;
}

.type-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #f8f9fa;
    color: #666;
    border-radius: 5px;
    transition: all 0.3s;
    width: 120px;
}

    .type-btn:hover {
        border-color: #269c05;
        color: #269c05;
    }

    .type-btn.active {
        border-color: #269c05;
        background: #269c05;
        color: white;
    }

/* Form Sections */
.form-section {
    display: none;
}

    .form-section.active {
        display: block;
    }

/* Form specific styles */
.form-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.required:after {
    content: " *";
    color: red;
}

/* جدول الطلبات */
.requests-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .requests-table th {
        background-color: #f8f9fa;
        color: #333;
        font-weight: bold;
        padding: 15px;
        border-bottom: 2px solid #dee2e6;
        text-align: right;
    }

    .requests-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dee2e6;
        text-align: right;
    }

    .requests-table tr:hover {
        background-color: #f8f9fa;
    }

.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.no-requests {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Registration specific styles */
.cards-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.registration-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

    .registration-card:hover {
        border-color: #269c05;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(139, 28, 28, 0.1);
    }

    .registration-card i {
        font-size: 3.5rem;
        color: #269c05;
        margin-bottom: 20px;
    }

    .registration-card h3 {
        color: #333;
        margin-bottom: 15px;
        font-weight: bold;
    }

    .registration-card p {
        color: #666;
        line-height: 1.6;
    }

/* Form Container */
.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Steps Header */
.steps-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #dee2e6;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.step-item {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #666;
}

    .step-item.active {
        color: #269c05;
    }

.step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-left: 10px;
}

.step-item.active .step-number {
    background: #269c05;
    color: white;
}

/* Form Body */
.form-body {
    padding: 0;
}

/* Form Section */
.form-section {
    display: none;
    padding: 0;
}

    .form-section.active {
        display: block;
    }

.section-content {
    padding: 30px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-number-large {
    background: #269c05;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-left: 15px;
}

.section-title {
    color: #269c05;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0;
}

/* Section Subtitle */
.section-subtitle {
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    transition: all 0.3s;
    width: 100%;
}

    .form-control:focus {
        border-color: #269c05;
        box-shadow: 0 0 0 0.2rem rgba(139, 28, 28, 0.15);
    }

/* Radio Group */
.radio-group {
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-input {
    margin-left: 10px;
    transform: scale(1.2);
}

/* Service Info Box */
.service-info-box {
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

    .service-info-box strong {
        color: #004085;
        display: block;
        margin-bottom: 10px;
        font-size: 1rem;
    }

/* Personal Info Fields Grid */
.fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

.btn {
    padding: 12px 35px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

    .btn i {
        margin: 0 5px;
    }

.btn-previous {
    background: #6c757d;
    color: white;
}

    .btn-previous:hover {
        background: #5a6268;
    }

.btn-next {
    background: #269c05;
    color: white;
}

    .btn-next:hover {
        background: #5a0c0c;
    }

.btn-submit {
    background: #28a745;
    color: white;
}

    .btn-submit:hover {
        background: #218838;
    }

/* Hide elements */
.hidden {
    display: none !important;
}

/* From HomePageWithLogin.html */
.header-inner, .footer-inner {
    position: relative;
    height: 100%;
}

.header-right, .footer-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-left, .footer-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-center, .footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Additional mobile responsiveness */
@media (max-width: 991.98px) {
    .requests-table {
        overflow-x: auto;
    }
}

.is-invalid {
    border-color: #dc3545 !important;
}

