/* Google Fonts - Vazirmatn */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    background-color: #24265b;
    color: #fff;
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* بهبود نمایش فونت برای عناصر مختلف */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    line-height: 1.5;
}

p, span, div, a, label, input, textarea, select, button {
    font-family: 'Vazirmatn', sans-serif;
}

/* Global color consistency for cards */
.card {
    color: #333;
    }

.card-body {
    color: #333;
}

.card-body p,
.card-body span,
.card-body div:not(.form-check):not(.form-label):not(.alert):not(.badge):not(.text-white) {
    color: black;
    text-align: center;
}

.card-body .text-white {
    color: #fff !important;
}

/* Ensure form labels in cards are visible */
.card-body .form-label {
    color: #333;
}

.card-body .form-label.text-white {
    color: #fff !important;
}

/* Registration form specific - white text */
.registration-form .form-label,
.registration-form p:not(.text-muted),
.registration-form span:not(.text-muted),
.registration-form div:not(.form-check):not(.alert):not(.text-muted) {
    color:#fff;
}
.p-3 {
    padding: 0 1rem !important;
}
/* Login Page Styles */
.login-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.login-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #24265b 0%, #1a1d4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.logo-container {
    text-align: center;
}

.festival-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-text {
    color: #318f91;
    text-align: center;
}

.persian-text {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
}

.persian-text-small {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.english-text {
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    font-weight: normal;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: #318f91;
    border-radius: 50%;
    margin-top: 20px;
}

.logo-image-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    max-width: 180px;
    max-height: 180px;
}

@media (max-width: 768px) {
    .logo-image-container {
        width: 150px;
        height: 150px;
        margin-top: 15px;
    }
    
    .logo-image {
        max-width: 150px;
        max-height: 150px;
    }
}

.logo-image-small-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    margin-left: 10px;
}

.logo-image-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.login-right-panel {
    flex: 2;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.user-icon {
    color: #318f91;
    margin-bottom: 30px;
}

.login-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #318f91;
}

.login-form {
    text-align: right;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: black;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-group .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background-color: #fff;
    color: #333;
}

.form-group select,
.form-group .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group .form-select:focus {
    outline: none !important;
    border-color: #318f91 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
}

.form-group select option,
.form-group .form-select option {
    background-color: #fff;
    color: #333;
    padding: 10px;
}

.form-group select:hover,
.form-group .form-select:hover {
    border-color: #318f91;
}

/* Override Bootstrap default blue focus color globally */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #318f91 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

/* Override Bootstrap primary blue color */
.form-control:focus:not(.is-invalid):not(.is-valid),
.form-select:focus:not(.is-invalid):not(.is-valid) {
    border-color: #318f91 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #333;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

/* Button styles - Bootstrap compatible */
.btn-primary {
    background-color: #318f91;
    border-color: #318f91;
    color: #fff;
    transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4ba8aa;
    border-color: #4ba8aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 143, 145, 0.4);
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    color: #000;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.login-links {
    margin-top: 25px;
    text-align: center;
}

.login-links-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.link {
    color: #318f91;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.link:hover {
    color: #4ba8aa;
}

/* Dashboard Styles */
.dashboard-page {
    min-height: 100vh;
    background-color: #b6ac96;
}

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

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.user-menu-wrapper {
    position: relative;
}





.user-menu-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;

}

.box-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    color: #000;
    text-align: right;
}

.globe-icon {
    font-size: 18px;
}

.dropdown-arrow {
    font-size: 10px;
    margin-right: 5px;
    color: #000;
}

.user-menu-dropdown {
    min-width: 250px;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(49, 143, 145, 0.2);
    border-radius: 5px;
    margin-top: 10px;
}

.user-menu-dropdown .dropdown-item {
    padding: 12px 20px;
    color: #318f91;
    transition: background-color 0.3s;
    text-align: right;
}

.user-menu-dropdown .dropdown-item:hover {
    background-color: rgba(49, 143, 145, 0.1);
    color: #318f91;
}

.user-menu-dropdown .dropdown-item:focus {
    background-color: rgba(49, 143, 145, 0.1);
    color: #318f91;
}

.menu-icon {
    font-size: 18px;
}

.user-menu-dropdown .dropdown-divider {
    margin: 5px 0;
    border-color: rgba(49, 143, 145, 0.2);
}

.header-logo {
    display: flex;
    align-items: center;
    color: #2c3e50;
}

.festival-logo-small {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
}

.logo-circle-small {
    width: 50px;
    height: 50px;
    background: #318f91;
    border-radius: 50%;
}

.logo-text-small {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.english-text-small {
    font-size: 11px;
    color: #2c3e50;
    font-weight: normal;
    margin-top: 3px;
}

/* --------- Responsive logo tweaks for mobile --------- */
@media (max-width: 576px) {
    /* لوگوی بزرگ (صفحه ورود و صفحه اصلی) */
    .festival-logo {
        gap: 10px;
    }

    .persian-text {
        font-size: 20px;
    }

    .persian-text-small {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .english-text {
        font-size: 10px;
        margin-top: 6px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .logo-image-container {
        width: 120px;
        height: 120px;
        margin-top: 10px;
    }

    .logo-image {
        max-width: 120px;
        max-height: 120px;
    }

    /* لوگوی کوچک بالای داشبورد */
    .logo-image-small-container {
        width: 36px;
        height: 36px;
        margin-left: 8px;
    }

    .logo-image-small {
        width: 36px;
        height: 36px;
    }

    .logo-circle-small {
        width: 36px;
        height: 36px;
    }

    .logo-text-small {
        font-size: 13px;
    }

    .english-text-small {
        font-size: 9px;
    }
}

.user-name {
    color: #2c3e50;
}

.dashboard-header {
    color: #2c3e50;
}
svg{
    color: #000;
}

.dashboard-main {
    text-align: center;
    padding: 40px 20px;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #24265b;
    min-height: calc(100vh - 200px);
}

.dashboard-main .card {
    background-color: #fff;
}

.dashboard-main .card-body {
    color: #333;
}

.dashboard-main .card-body .form-label {
    text-align: right;
    color: #333;
    float: right;
}

.dashboard-main .card-body .form-control,
.dashboard-main .card-body .form-select {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.dashboard-main .card-body .form-control:focus,
.dashboard-main .card-body .form-select:focus {
    background-color: #fff;
    border-color: #318f91;
    color: #333;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25);
}

.dashboard-main .card-body .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.dashboard-main .card-body .form-check-label {
    color: #333;
}

.dashboard-main .card-body .text-muted {
    color: #6c757d !important;
}

.dashboard-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 50px;
    font-weight: bold;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background-color: #24265b;
    border-radius: 10px;
    padding: 30px 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 180px;
    justify-content: center;
}

.category-card:hover {
    background-color: #fff;
    color: #318f91;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(49, 143, 145, 0.3);
}

.category-card.active {
    background-color: #318f91;
    color: #fff;
}

.category-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-icon {
    color: currentColor;
}

.back-to-site {
    margin-top: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #318f91;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #4ba8aa;
}

.back-icon {
    font-size: 20px;
}

/* Track Registration Page */
.track-page,
.edit-page {
    min-height: 100vh;
    background-color: #24265b;
}

.page-container {
    display: flex;
    min-height: 100vh;
}

.page-content {
    flex: 2;
    background-color: #24265b;
    padding: 40px;
    color: #fff;
}

.page-sidebar {
    flex: 1;
    background: linear-gradient(135deg, #318f91 0%, #4ba8aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    color: #fff;
    font-weight: bold;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #318f91;
    color: #318f91;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.back-btn:hover {
    background-color: rgba(49, 143, 145, 0.1);
}

.back-btn-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.back-btn-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.tabs-container {
    margin-top: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #444;
}

.tab-btn {
    padding: 12px 25px;
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-family: inherit;
}

.tab-btn:hover {
    color: #318f91;
}

.tab-btn.active {
    color: #318f91;
    border-bottom-color: #318f91;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #24265b;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background-color: #318f91;
    color: #fff;
}

.data-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(49, 143, 145, 0.2);
    color: #fff;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: rgba(49, 143, 145, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background-color: #ffa500;
    color: #000;
}

.status-badge.approved {
    background-color: #4caf50;
    color: #fff;
}

.status-badge.rejected {
    background-color: #f44336;
    color: #fff;
}

.btn-edit {
    padding: 8px 15px;
    background-color: #318f91;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-edit:hover {
    background-color: #4ba8aa;
    transform: translateY(-2px);
}

.sidebar-content {
    text-align: center;
    position: relative;
    width: 100%;
}

.sidebar-logo {
    margin-bottom: 40px;
}

.sidebar-icon {
    color: #000;
    margin: 40px 0;
}

.sidebar-title {
    font-size: 28px;
    color: #000;
    font-weight: bold;
    margin-top: 20px;
}

/* Edit Profile Page */
.edit-form {
    max-width: 800px;
    margin: 0 auto;
}

.profile-image-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #318f91;
}

.profile-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed #ddd;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
    margin: 0 auto;
}

.profile-image-placeholder:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
    color: #3498db;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding: 10px;
    border-radius: 0 0 75px 75px;
}

.btn-choose-image {
    background-color: #318f91;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-choose-image:hover {
    background-color: #4ba8aa;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: black;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(49, 143, 145, 0.3);
    border-radius: 5px;
    color: black;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: black;
}
.bg-primary{
    background-color: #318f91 !important;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #318f91;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    margin-top: 30px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left-panel {
        min-height: 200px;
    }

    .login-right-panel {
        min-height: auto;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .page-container {
        flex-direction: column;
    }

    .page-sidebar {
        min-height: 300px;
    }

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

    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .user-menu-dropdown {
        right: 0;
        left: 0;
    }
}

/* Loading and Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.login-form-container,
.page-content {
    animation: fadeIn 0.5s ease-out;
}

/* Alert Info Styles */
.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1976d2;
    font-size: 14px;
    line-height: 1.6;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Registration Section Styles */
.section-subtitle {
    font-size: 24px;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 600;
}

.registration-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.registration-section-card {
    background-color: #24265b;
    border: 2px solid #318f91;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.registration-section-card:hover {
    background-color: rgba(49, 143, 145, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(49, 143, 145, 0.3);
}

.section-label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
}

.registration-section-card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.5;
}

.registration-section-card .btn {
    width: 100%;
    max-width: 200px;
}

/* Agreement Page Styles */
.agreement-page {
    min-height: 100vh;
    background-color: #24265b;
}

.agreement-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #fff;
}

.agreement-header {
    text-align: center;
    margin-bottom: 40px;
}

.agreement-header h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
}

.agreement-content {
    background-color: #24265b;
    border: 2px solid rgba(49, 143, 145, 0.3);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
}

.agreement-content h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.agreement-content p {
    color: #fff;
    line-height: 2;
    margin-bottom: 15px;
    font-size: 15px;
}

.agreement-content ul {
    list-style: none;
    padding-right: 20px;
}

.agreement-content li {
    color: #fff;
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
    line-height: 1.8;
}

.agreement-content li:before {
    content: "●";
    color: #318f91;
    position: absolute;
    right: 0;
}

.agreement-checkbox {
    background-color: #24265b;
    border: 2px solid rgba(49, 143, 145, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.agreement-checkbox h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-wrapper label {
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    line-height: 1.6;
}

.btn-continue {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    padding: 15px;
    font-size: 16px;
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Registration Form Styles - Bootstrap Compatible */
.registration-form {
    background-color: transparent;
}

.registration-form .form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.registration-form .form-section h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(49, 143, 145, 0.3);
    text-align: right;
}

.registration-form .form-section p,
.registration-form,
.registration-form .form-section div:not(.form-check):not(.form-label) {
    color: #fff;
    text-align: right;
}

.registration-form .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.registration-form .alert {
    border-radius: 8px;
}

.registration-form .alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    color: #fff;
}

.registration-form .alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #fff;
}

.registration-form .alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.3);
    color: #fff;
}

.registration-form .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #fff;
}

.registration-form .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 14px;
    text-align: right;
}

/* Form validation styles */
.registration-form .form-control.is-invalid,
.registration-form .form-select.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.registration-form .form-control.is-invalid:focus,
.registration-form .form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.registration-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ff6b6b;
}

.registration-form .form-control.is-valid,
.registration-form .form-select.is-valid {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

.registration-form .form-control.is-valid:focus,
.registration-form .form-select.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.registration-form .valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #51cf66;
}

.registration-form .form-control,
.registration-form .form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #212529;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    border-radius: 5px;
}
.checkbox-group span{
    color: #212529 !important;
}

.registration-form .form-select {
    /* استفاده از ظاهر ساده و شبیه بوت‌استرپ برای دراپ‌داون */
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* اجازه بده گزینه‌ها از استایل پیش‌فرض مرورگر/بوت‌استرپ استفاده کنند */

/* Global form-select styles for consistency */
.form-select {
    width: 100%;
    border-radius: 5px;
}

.dashboard-main .card-body .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Override Bootstrap default blue focus color - Global override */
.form-control:focus,
.form-select:focus {
    border-color: #318f91 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

.registration-form .form-control:focus,
.registration-form .form-select:focus {
    background-color: #24265b !important;
    border-color: #318f91 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

.dashboard-main .card-body .form-control:focus,
.dashboard-main .card-body .form-select:focus {
    background-color: #fff !important;
    border-color: #318f91 !important;
    color: #333 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #318f91 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

/* Remove Bootstrap default blue outline */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #318f91 !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

.registration-form .form-control:disabled,
.registration-form .form-select:disabled {
    background-color: rgba(36, 38, 91, 0.5);
    opacity: 0.6;
    cursor: not-allowed;
}

.registration-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.registration-form .form-control[type="file"] {
    padding: 10px;
    background-color: rgba(49, 143, 145, 0.1);
    border: 2px dashed rgba(49, 143, 145, 0.5);
    cursor: pointer;
}

.registration-form .form-control[type="file"]:hover {
    border-color: #318f91;
    background-color: rgba(49, 143, 145, 0.2);
}



.registration-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.registration-form .form-check-label {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.registration-form .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid rgba(49, 143, 145, 0.5);
    background-color: #24265b;
}

.registration-form .form-check-input:checked {
    background-color: #318f91;
    border-color: #318f91;
}

.registration-form .form-check-input:focus {
    border-color: #318f91;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25);
}

.registration-form .person-form,
.registration-form .photo-info-form {
    background-color: rgba(49, 143, 145, 0.05);
    border: 1px solid rgba(49, 143, 145, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.registration-form .person-form h3,
.registration-form .person-form h4,
.registration-form .photo-info-form h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(49, 143, 145, 0.3);
    text-align: right;
}

.registration-form .btn-add-person {
    background-color: #318f91;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.registration-form .btn-add-person:hover {
    background-color: #4ba8aa;
    color: #fff;
}

/* Radio groups - Bootstrap compatible */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(49, 143, 145, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(49, 143, 145, 0.2);
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #318f91;
}

.radio-item label {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.person-form {
    background-color: rgba(49, 143, 145, 0.05);
    border: 1px solid rgba(49, 143, 145, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.person-form .form-label {
    color: #fff;
}

.person-form .form-control,
.person-form .form-select {
    background-color: #24265b;
    border: 2px solid rgba(49, 143, 145, 0.3);
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    width: 100%;
    display: block;
    transition: all 0.3s;
}

.person-form .form-control:focus,
.person-form .form-select:focus {
    background-color: #24265b !important;
    border-color: #318f91 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25) !important;
    outline: none !important;
}

.person-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.person-form .form-select option {
    background-color: #24265b;
    color: #fff;
    padding: 10px;
}

.person-form .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    text-align: right;
}

.person-image-section {
    text-align: center;
    margin-bottom: 20px;
}

.person-image-wrapper {
    position: relative;
    display: inline-block;
}

.person-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #318f91;
}

.person-image-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding: 8px;
    border-radius: 0 0 60px 60px;
}

.person-image-role {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

@media (max-width: 576px) {
    .person-image {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }

    .person-image-overlay {
        padding: 6px;
        border-radius: 0 0 45px 45px;
    }

    .person-image-role {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .btn-choose-image {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.btn-add-person {
    background-color: #318f91;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add-person:hover {
    background-color: #4ba8aa;
}

.spinbutton {
    width: 100%;
    padding: 12px 15px;
    background-color: #24265b;
    border: 2px solid rgba(49, 143, 145, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.spinbutton::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.spinbutton:focus {
    background-color: #24265b;
    border-color: #318f91;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(49, 143, 145, 0.25);
    outline: none;
}

.year-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background-color: rgba(49, 143, 145, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(49, 143, 145, 0.2);
}

.year-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #318f91;
    cursor: pointer;
}

.year-radio-item label {
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.btn-submit-registration {
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    display: block;
    padding: 15px;
    font-size: 16px;
    background-color: #318f91;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-submit-registration:hover {
    background-color: #4ba8aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 143, 145, 0.4);
}

/* Text colors consistency */
.dashboard-main .text-white {
    color: #fff !important;
}

.dashboard-main .text-dark {
    color: #333 !important;
}

.dashboard-main .text-primary {
    color: #318f91 !important;
}

.dashboard-main .text-success {
    color: #198754 !important;
}

.dashboard-main .text-danger {
    color: #dc3545 !important;
}

.dashboard-main .text-warning {
    color: #ffc107 !important;
}

.dashboard-main .text-info {
    color: #0dcaf0 !important;
}

/* Link colors */
.dashboard-main a:not(.btn):not(.card) {
    color: #318f91;
    text-decoration: none;
    transition: color 0.3s;
}

.dashboard-main a:not(.btn):not(.card):hover {
    color: #4ba8aa;
}

.dashboard-main .card a.card {
    color: inherit;
}

.dashboard-main .card a.card:hover {
    color: inherit;
}

/* Card header text colors */
.card-header.bg-primary {
    color: #fff !important;
}

.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary .card-title {
    color: #fff !important;
}

/* Ensure all text in registration form is white */
.registration-form .card-body {
    background-color: transparent !important;
}

.registration-form .card-body,
.registration-form .card-body * {
    color: #000 !important;
}

.registration-form .card-body .form-label {
    color: #000 !important;
}

.registration-form
.registration-form .card-body span,
.registration-form .card-body div:not(.form-check):not(.alert):not(.badge):not(.text-muted) {
    color: #fff !important;
}

.registration-form .card-body .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.registration-form .card-body h1,
.registration-form .card-body h2,
.registration-form .card-body h3,
.registration-form .card-body h4,
.registration-form .card-body h5,
.registration-form .card-body h6 {
    color: #fff !important;
}

/* Override Bootstrap default card body color for registration form */
.card:has(.registration-form) .card-body {
    color: #fff !important;
    background-color: transparent !important;
}

/* ============================================
   Admin Users Page Styles
   ============================================ */

/* Dropdown Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
    z-index: 10;
}





.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    min-width: 200px;
    overflow: visible;
    direction: rtl;
    animation: fadeIn 0.2s ease;
    white-space: nowrap;
}

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

.dropdown-item {
    font-size: 13px;
    text-align: right;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:hover {
    background: #f8f9fa !important;
}

.dropdown-item:last-child {
    border-bottom: none !important;
}

.dropdown-item button {
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #e74c3c;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.dropdown-item button:hover {
    background: #fee !important;
}

.dropdown-item-icon {
    margin-left: 10px;
    font-size: 16px;
}

.dropdown-item-icon.view {
    color: #3498db;
}

.dropdown-item-icon.edit {
    color: #f39c12;
}

.dropdown-item-icon.email {
    color: #9b59b6;
}

.dropdown-item-icon.phone {
    color: #27ae60;
}

.dropdown-item-icon.delete {
    color: #e74c3c;
}

/* Table Actions Cell */
.table-actions-cell {
    padding: 10px;
    position: relative;
    overflow: visible;
}

/* Users Table Styles */
.users-table-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
}

.users-table {
    table-layout: fixed;
    width: 100% !important;
    max-width: 100%;
    position: relative;
    border-collapse: collapse;
}

.users-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.users-table th {
    padding: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: visible;
}

.users-table td {
    padding: 10px;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: visible;
    max-width: 0;
    text-overflow: ellipsis;
}

.users-table tbody tr {
    position: relative;
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s;
    background: white;
}

.users-table tbody tr:hover {
    background: #f8f9fa !important;
}

/* Table Header Styles */
.users-table th.text-center {
    text-align: center;
}

.users-table th.text-right {
    text-align: right;
}

.users-table td.text-center {
    text-align: center;
}

.users-table td.text-right {
    text-align: right;
}

/* Table Content Styles */
.users-table .user-profile-cell {
    padding: 10px;
    overflow: hidden;
}

.users-table .user-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.users-table .user-profile-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.users-table .user-profile-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.users-table .user-profile-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.users-table .user-profile-name {
    font-weight: 600;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.users-table .user-verified {
    color: #27ae60;
    font-size: 10px;
}

.users-table .user-not-verified {
    color: #e74c3c;
    font-size: 10px;
}
