.container {
    overflow: visible;
}
.role-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.role-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-light);
}
.role-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.role-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}
.role-card:hover i {
    transform: scale(1.1);
}
.role-card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.role-card p {
    font-size: 0.85rem;
    color: var(--dark-light);
    line-height: 1.5;
}
body.dark-mode .role-card {
    background: var(--gray-light);
}
body.dark-mode .role-card:hover {
    background: rgba(67, 97, 238, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 1rem;
}
.file-upload:hover {
    border-color: var(--primary);
    background: var(--gray-light);
}
.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    display: none;
    margin: 0 auto 1rem;
}

/* استایل تگ‌های دروس */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    min-height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--light);
    position: relative;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.tag i {
    cursor: pointer;
    font-size: 0.7rem;
    transition: 0.2s;
}
.tag i:hover {
    color: var(--accent);
}
.tag-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
}
.subjects-dropdown {
    position: absolute;
    z-index: 10;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    display: none;
    top: calc(100% + 5px);
    left: 0;
}
.subject-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.subject-item:hover {
    background: var(--primary-light);
}
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--gray-light);
    cursor: text;
    transition: var(--transition, 0.3s ease);
}
.custom-select-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--light);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.subject-tag i {
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    transition: var(--transition, 0.2s);
}
.subject-tag i:hover {
    color: var(--accent);
}
.search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    flex-grow: 1;
    min-width: 120px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--dark);
    padding: 0.25rem 0;
}
.custom-options-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
    max-height: 180px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.custom-option-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--dark);
    cursor: pointer;
    transition: background var(--transition, 0.2s);
    border-bottom: 1px solid var(--border);
}
.custom-option-item:last-child {
    border-bottom: none;
}
.custom-option-item:hover {
    background: var(--light);
    color: var(--primary);
}
.add-new-option {
    color: var(--accent);
    font-weight: 700;
}