/* module styles for subjects */

.subject-instructor-combo {
    position: relative;
}

.subject-instructor-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    cursor: pointer;
    gap: 8px;
}

.subject-instructor-arrow {
    color: #5f6b7a;
    flex: 0 0 auto;
}

.subject-instructor-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(12, 33, 57, 0.12);
    padding: 10px;
}

.subject-instructor-list {
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subject-instructor-option {
    width: 100%;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    background: #fff;
    text-align: right;
    padding: 8px 10px;
    font-size: 13px;
    color: #1f2a37;
    cursor: pointer;
}

.subject-instructor-option:hover {
    border-color: #76a6ff;
    background: #eef4ff;
}

.subject-instructor-option.is-selected {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.subject-instructor-status {
    margin-top: 8px;
    font-size: 12px;
    color: #667085;
}

.subject-form-actions {
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e6ecd5;
    gap: 10px;
}

.subject-form-actions .btn {
    min-width: 116px;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.1px;
    transition: all 0.18s ease;
}

.subject-form-actions .subject-save-btn {
    background: linear-gradient(135deg, #9ec11a 0%, #7ea215 100%);
    border: 1px solid #7f9f1e;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(126, 162, 21, 0.24);
}

.subject-form-actions .subject-save-btn:hover,
.subject-form-actions .subject-save-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 16px rgba(126, 162, 21, 0.28);
}

.subject-form-actions .subject-cancel-btn {
    background: #ffffff;
    border: 1px solid #cdd9ad;
    color: #536238;
}

.subject-form-actions .subject-cancel-btn:hover,
.subject-form-actions .subject-cancel-btn:focus {
    background: #f6f9ec;
    border-color: #b9ca90;
    color: #44522f;
}

.subject-form-actions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 196, 34, 0.2);
}

@media (max-width: 767px) {
    .subject-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .subject-form-actions .btn {
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}
