﻿body {
    font-family: 'IRANSans', Arial, sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
}

.site-header {
    background-color: #002855;
    color: #fff;
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .site-header img {
        height: 50px;
    }

    .site-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

.navbar {
    background-color: #004080;
}

    .navbar .nav-link, .navbar .navbar-brand {
        color: #fff !important;
    }

    .navbar .dropdown-menu {
        text-align: right;
    }

.footer {
    background-color: #002855;
    color: #fff;
    padding: 40px 0;
    text-align: right;
}

    .footer a {
        color: #fff;
        text-decoration: none;
        margin: 0 5px;
    }

    .footer .footer-column h5 {
        font-size: 1rem;
        color: #f8f9fa;
    }

    .footer .footer-column ul {
        list-style: none;
        padding: 0;
    }

        .footer .footer-column ul li {
            margin-bottom: 8px;
        }

.news-section {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

    .news-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        margin-left: 10px;
    }

    .news-item h6 {
        margin: 0;
        font-size: 0.9rem;
        color: #333;
    }

    .news-item small {
        color: #888;
    }

.announcement-container {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #002855;
    margin-bottom: 20px;
}

.announcement-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.announcement-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.announcement-summary {
    background-color: #f1f3f4;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #555;
}

.announcement-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.announcement-attachment ul {
    list-style: none;
    padding: 0;
}

    .announcement-attachment ul li a {
        color: #004080;
        text-decoration: none;
        font-weight: bold;
    }

.employment-section {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.employment-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

    .employment-item:last-child {
        border-bottom: none;
    }

    .employment-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        margin-left: 15px;
    }

.employment-details {
    flex-grow: 1;
}

    .employment-details h6 {
        margin: 0;
        font-size: 1rem;
        color: #002855;
        font-weight: bold;
    }

    .employment-details p {
        margin: 5px 0;
        font-size: 0.9rem;
        color: #555;
    }

.employment-dates {
    font-size: 0.9rem;
    color: #888;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s ease-in-out;
}

    .card:hover {
        transform: translateY(-5px);
    }

    .card img {
        height: 120px;
        object-fit: contain;
        margin: 10px 0;
    }

.login-container {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 50px auto;
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

    .navbar .nav-link:hover {
        color: #002855 !important;
        background-color: #f8f9fa;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.navbar .dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .navbar .dropdown-menu .dropdown-item {
        padding: 10px 20px;
        transition: background-color 0.3s ease;
    }

        .navbar .dropdown-menu .dropdown-item:hover {
            background-color: #e9ecef;
        }


.navbar-toggler {
    border-color: transparent;  
    background-color: #ffffff;  
    border-radius: 5px;  
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280,0,0,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-size: 1.5em 1.5em;
    background-repeat: no-repeat;
    background-position: center;
}



 


/* Wrapper کلی برای Toggle */
.toggle-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: #ddd;
    border-radius: 20px;
    
    height: 40px; /* تنظیم ارتفاع */
    overflow: hidden;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

    /* مخفی کردن دکمه‌های رادیویی */
    .toggle-wrapper input[type="radio"] {
        display: none;
    }

    /* استایل برای برچسب‌ها */
    .toggle-wrapper label {
        flex: 1;
        text-align: center;
        line-height: 40px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #555;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        overflow: hidden;
    }

    /* استایل حالت انتخاب‌شده */
    .toggle-wrapper input[type="radio"]:checked + label {
        background-color: #4caf50;
        color: white;
        font-weight: bold;
    }

    /* استایل گوشه‌های برچسب */
    .toggle-wrapper label:first-of-type {
        border-radius: 20px 0 0 20px;
    }

    .toggle-wrapper label:last-of-type {
        border-radius: 0 20px 20px 0;
    }

    /* تنظیم فضای داخلی متن */
    .toggle-wrapper label {
        padding: 0 10px;
    }
.toggle-wrapper {
    direction: rtl;
}

        .toggle-wrapper label:first-of-type {
            border-radius: 0 20px 20px 0;
        }
        .toggle-wrapper label:last-of-type {
            border-radius: 20px 0 0 20px;
        }





.announcement-details {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.announcement-title {
    font-size: 2rem;
    font-weight: bold;
    color: #002855;
}

.announcement-company {
    font-size: 1.2rem;
    color: #004080;
}

.announcement-dates {
    color: #888;
    font-size: 1rem;
    margin-top: 10px;
}

.action-bar {
    background-color: #f1f1f1;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.tab-content {
    margin-top: 20px;
}

    .tab-content h5 {
        margin-bottom: 15px;
        color: #002855;
    }

    .tab-content p {
        color: #333;
        line-height: 1.8;
    }
.select2-search__field{text-align:right;direction:rtl
}

.dltr{direction:ltr;text-align:left}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

.nav-item:hover .dropdown-menu {
    display: block;
}

/* استایل سفارشی برای لینک داشبورد */
.dashboard-link {
    background-color: #007bff; /* رنگ پس‌زمینه خاص */
    color: #fff; /* رنگ متن */
    border-radius: 5px; /* گوشه‌های گرد */
    padding: 5px 15px; /* فضای داخلی */
    transition: background-color 0.3s ease, color 0.3s ease; /* انیمیشن تغییر رنگ */
}

    .dashboard-link:hover {
        background-color: #0056b3; /* رنگ پس‌زمینه در هاور */
        color: #ffffff; /* رنگ متن در هاور */
    }

.pagination-container .pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    margin: 0 2px;
}

.pagination-container .pagination .page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-container .pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.date-field {
    width: 200px; /* عرض موردنظر خود را تنظیم کنید */
}
.steps-container {
    text-align: center;
}

.steps {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    direction: rtl; /* تنظیم جهت راست به چپ */
}

.step {
    position: relative;
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 30px;
    background-color: #f5f5f5;
    color: #777;
    font-weight: bold;
    cursor: default;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

    .step.completed {
        border-color: #28a745;
        background-color: #28a745;
        color: white;
    }

    .step.active {
        border-color: #007bff;
        background-color: #007bff;
        color: white;
    }

    .step:before {
        content: '';
        position: absolute;
        top: 50%;
        left: -20px; /* تنظیم جهت فلش به راست */
        transform: translateY(-50%);
        border-right: 10px solid #ccc;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        z-index: 1;
    }

    .step.completed:before {
        border-right-color: #28a745;
    }

    .step.active:before {
        border-right-color: #007bff;
    }

    .step:first-child:before {
        display: none;
    }

.current-step-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}
.datepicker-container {
    display: flex;
    flex-direction: row; /* نمایش افقی */
    justify-content: space-around; /* فضاهای مساوی بین عناصر */
    align-items: center; /* عناصر در یک خط عمودی قرار گیرند */
    gap: 10px; /* فاصله بین عناصر */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width:380px;
    direction:ltr
}

.datepicker-element {
    display: inline-block;
}

.separator {
    font-size: 16px;
    color: #333;
    padding: 0 5px;
}

.form-select {
    width: 90px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    text-align: center;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.finish-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: #f9f9f9;
    text-align:center
}

.finish-icon {
    font-size: 100px;
    color: #28a745;
}

.finish-message {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.finish-subtext {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #777;
}

.btn-home {
    margin-top: 30px;
    padding: 10px 20px;
    font-size: 1.2rem;
}
.timepicker-container {
    display: flex;
    flex-direction: row; /* نمایش افقی */
    justify-content: space-around; /* فضاهای مساوی بین عناصر */
    align-items: center; /* عناصر در یک خط عمودی قرار گیرند */
    gap: 10px; /* فاصله بین عناصر */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 260px;
    direction: ltr
}

.timepicker-element {
    margin: 0 5px;
    direction: ltr;
}

.separator {
    font-size: 1.2em;
    margin: 0 5px;
}

.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

    .pagination a {
        display: inline-block;
        padding: 10px 15px;
        text-decoration: none;
        border: 1px solid #ddd;
        background-color: #f9f9f9;
        color: #007bff;
        border-radius: 5px;
        transition: all 0.3s;
    }

        .pagination a:hover {
            background-color: #007bff;
            color: #fff;
            border-color: #007bff;
        }

    .pagination .active a {
        background-color: #007bff;
        color: #fff;
        border-color: #007bff;
        pointer-events: none;
    }

#adImage {
    max-width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    #adImage:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.select2-container--default .select2-selection--single{direction:rtl}

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.site-header {
    flex-shrink: 0;
}

.navbar {
    flex-shrink: 0;
}

.container.my-2 {
    flex-grow: 1; /* این قسمت باعث می‌شود محتوای اصلی فضای باقی‌مانده را پر کند */
    min-height: calc(100vh - 150px); /* 100vh منهای ارتفاع تقریبی هدر و فوتر */
}

.footer {
    flex-shrink: 0;
}
.form-group {
    margin-bottom: 1rem; /* فاصله پایین هر گروه */
}

#errorContainer {
    display: none; /* مخفی به صورت پیش‌فرض */
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: left;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #dc3545;
}