/**
 * MasterStudy Frontend Admin Hub - Enhanced Styles
 * adminhub.html 디자인 기반
 */

/* Google Material Icons */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Variables */
:root {
    --msfah-primary: #137fec;
    --msfah-primary-hover: #1067c4;
    --msfah-bg-light: #f6f7f8;
    --msfah-bg-dark: #101922;
    --msfah-card-light: #ffffff;
    --msfah-card-dark: #15202b;
    --msfah-text-dark: #1e293b;
    --msfah-text-light: #f8fafc;
    --msfah-text-muted: #64748b;
    --msfah-border-light: #e2e8f0;
    --msfah-border-dark: #1e293b;
    --msfah-sidebar-width: 256px;
    --msfah-header-height: 60px;
}

.msfah-dark {
    --msfah-bg: var(--msfah-bg-dark);
    --msfah-card: var(--msfah-card-dark);
    --msfah-text: var(--msfah-text-light);
    --msfah-text-secondary: #94a3b8;
    --msfah-border: var(--msfah-border-dark);
}

/* Base */
.msfah-app-v2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--msfah-text-dark);
    background: var(--msfah-bg-light);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.msfah-app-v2.msfah-dark {
    background: var(--msfah-bg-dark);
    color: var(--msfah-text-light);
}

.msfah-app-v2 * {
    box-sizing: border-box;
}

.msfah-app-v2 a {
    color: var(--msfah-primary);
    text-decoration: none;
}

.msfah-app-v2 a:hover {
    color: var(--msfah-primary-hover);
}

/* Material Icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400;
    vertical-align: middle;
}

/* Sidebar */
.msfah-sidebar-v2 {
    width: var(--msfah-sidebar-width);
    background: var(--msfah-card-light);
    border-right: 1px solid var(--msfah-border-light);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.msfah-dark .msfah-sidebar-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-sidebar-v2--hidden {
    transform: translateX(-100%);
}

.msfah-sidebar-content-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 16px;
}

.msfah-sidebar-header-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 24px;
}

.msfah-logo-v2 {
    width: 40px;
    height: 40px;
    background: var(--msfah-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.3);
}

.msfah-sidebar-header-v2 h1 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.msfah-sidebar-header-v2 p {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 2px 0 0;
}

/* Navigation */
.msfah-nav-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.msfah-nav-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--msfah-text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.msfah-nav-item-v2:hover {
    background: var(--msfah-bg-light);
    color: var(--msfah-text-dark);
}

.msfah-dark .msfah-nav-item-v2:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--msfah-text-light);
}

.msfah-nav-item-v2:hover .material-symbols-outlined {
    color: var(--msfah-primary);
}

.msfah-nav-item-v2--active {
    background: var(--msfah-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(19, 127, 236, 0.2);
}

.msfah-nav-item-v2--active:hover {
    background: var(--msfah-primary-hover);
    color: white;
}

.msfah-nav-item-v2--active .material-symbols-outlined {
    color: white !important;
}

.msfah-nav-item-v2--danger {
    color: #ef4444;
}

.msfah-nav-item-v2--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.msfah-sidebar-footer-v2 {
    border-top: 1px solid var(--msfah-border-light);
    padding-top: 16px;
    margin-top: 16px;
}

.msfah-dark .msfah-sidebar-footer-v2 {
    border-color: var(--msfah-border-dark);
}

/* Main */
.msfah-main-v2 {
    flex: 1;
    margin-left: var(--msfah-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.msfah-sidebar-v2--hidden+.msfah-main-v2 {
    margin-left: 0;
}

/* Header */
.msfah-header-v2 {
    height: var(--msfah-header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--msfah-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.msfah-dark .msfah-header-v2 {
    background: rgba(21, 32, 43, 0.9);
    border-color: var(--msfah-border-dark);
}

.msfah-header-left-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.msfah-header-left-v2 h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.msfah-menu-btn-v2 {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--msfah-bg-light);
    border-radius: 8px;
    color: var(--msfah-text-muted);
    cursor: pointer;
}

.msfah-header-right-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.msfah-header-search-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--msfah-bg-light);
    border-radius: 8px;
    padding: 8px 12px;
    width: 256px;
}

.msfah-dark .msfah-header-search-v2 {
    background: rgba(255, 255, 255, 0.1);
}

.msfah-header-search-v2 input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: inherit;
    outline: none;
    width: 100%;
}

.msfah-header-search-v2 .material-symbols-outlined {
    color: var(--msfah-text-muted);
}

.msfah-icon-btn-v2 {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--msfah-bg-light);
    border-radius: 50%;
    color: var(--msfah-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.msfah-dark .msfah-icon-btn-v2 {
    background: rgba(255, 255, 255, 0.1);
}

.msfah-icon-btn-v2:hover {
    background: var(--msfah-border-light);
    color: var(--msfah-text-dark);
}

.msfah-icon-btn-v2--notification .msfah-notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--msfah-card-light);
}

.msfah-user-info-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-user-info-v2 {
    border-color: var(--msfah-border-dark);
}

.msfah-user-text-v2 {
    text-align: right;
}

.msfah-user-name-header {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.msfah-user-role-header {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 0;
}

.msfah-user-avatar-header {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--msfah-primary) 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Content */
.msfah-content-v2 {
    padding: 32px;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Page Header */
.msfah-page-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.msfah-page-header-v2 h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Buttons */
.msfah-btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.msfah-btn-v2--primary {
    background: var(--msfah-primary);
    color: white !important;
}

.msfah-btn-v2--primary:hover {
    background: var(--msfah-primary-hover);
    color: white !important;
}

/* Ensure all child elements in primary button have white color */
.msfah-btn-v2--primary .material-symbols-outlined,
.msfah-btn-v2--primary span,
.msfah-btn-v2--primary * {
    color: white !important;
}

.msfah-btn-v2--secondary {
    background: var(--msfah-bg-light);
    color: var(--msfah-text-dark);
    border: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-btn-v2--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--msfah-text-light);
    border-color: var(--msfah-border-dark);
}

/* Stat Cards */
.msfah-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.msfah-stat-card-v2 {
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    padding: 20px;
}

.msfah-dark .msfah-stat-card-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-stat-card-v2__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.msfah-stat-card-v2__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msfah-stat-card-v2__icon--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.msfah-stat-card-v2__icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.msfah-stat-card-v2__icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.msfah-stat-card-v2__icon--rose {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.msfah-stat-card-v2__icon--teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.msfah-stat-card-v2__trend {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 4px 8px;
    border-radius: 20px;
}

.msfah-stat-card-v2__label {
    font-size: 14px;
    color: var(--msfah-text-muted);
    margin: 0;
}

.msfah-stat-card-v2__value {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0 0;
}

/* Quick Actions */
.msfah-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.msfah-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.msfah-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.msfah-quick-action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 128px;
    padding: 16px;
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.msfah-dark .msfah-quick-action-card {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-quick-action-card:hover {
    border-color: rgba(19, 127, 236, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.msfah-quick-action-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.msfah-quick-action-card:hover .msfah-quick-action-card__icon {
    transform: scale(1.1);
}

.msfah-quick-action-card__icon--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.msfah-quick-action-card__icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.msfah-quick-action-card__icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.msfah-quick-action-card__icon--teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.msfah-quick-action-card p {
    font-weight: 600;
    margin: 0;
}

/* Search Bar */
.msfah-search-bar-v2 {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.msfah-search-input-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    padding: 0 16px;
}

.msfah-dark .msfah-search-input-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-search-input-v2 input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: inherit;
    outline: none;
}

.msfah-search-input-v2 .material-symbols-outlined {
    color: var(--msfah-text-muted);
}

/* Table */
.msfah-table-container-v2 {
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    overflow: hidden;
}

.msfah-dark .msfah-table-container-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-table-v2 {
    width: 100%;
    border-collapse: collapse;
}

.msfah-table-v2 th,
.msfah-table-v2 td {
    padding: 12px 16px;
    text-align: left;
}

.msfah-table-v2 th {
    background: var(--msfah-bg-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--msfah-text-muted);
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-table-v2 th {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
}

.msfah-table-v2 tbody tr {
    border-bottom: 1px solid var(--msfah-border-light);
    transition: background 0.2s;
}

.msfah-dark .msfah-table-v2 tbody tr {
    border-color: var(--msfah-border-dark);
}

.msfah-table-v2 tbody tr:hover {
    background: var(--msfah-bg-light);
}

.msfah-dark .msfah-table-v2 tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.msfah-table-v2 tbody tr:last-child {
    border-bottom: none;
}

.msfah-table-v2 .text-center {
    text-align: center;
}

.msfah-table-v2 .text-right {
    text-align: right;
}

/* Course Cell */
.msfah-course-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msfah-course-thumb-v2 {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--msfah-bg-light) center/cover;
}

.msfah-course-title-v2 {
    font-weight: 500;
    margin: 0;
}

.msfah-course-meta-v2 {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 2px 0 0;
}

/* User Cell */
.msfah-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msfah-avatar-v2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--msfah-primary) 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.msfah-user-name-v2 {
    font-weight: 500;
    margin: 0;
}

.msfah-user-login-v2 {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 2px 0 0;
}

/* Badge */
.msfah-badge-v2 {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.msfah-badge-v2--green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.msfah-badge-v2--yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

.msfah-badge-v2--blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.msfah-badge-v2--gray {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

/* Actions */
.msfah-actions-v2 {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.msfah-action-btn-v2 {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--msfah-bg-light);
    border-radius: 6px;
    color: var(--msfah-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.msfah-dark .msfah-action-btn-v2 {
    background: rgba(255, 255, 255, 0.1);
}

.msfah-action-btn-v2:hover {
    background: var(--msfah-primary);
    color: white;
}

/* Pagination */
.msfah-pagination-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
}

.msfah-pagination-v2 button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--msfah-border-light);
    background: var(--msfah-card-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all 0.2s;
}

.msfah-dark .msfah-pagination-v2 button {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-pagination-v2 button:hover:not(:disabled) {
    background: var(--msfah-primary);
    color: white;
    border-color: var(--msfah-primary);
}

.msfah-pagination-v2 button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.msfah-pagination-v2 span {
    font-size: 14px;
    color: var(--msfah-text-muted);
}

/* Loading */
.msfah-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--msfah-text-muted);
}

.msfah-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--msfah-border-light);
    border-top-color: var(--msfah-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty */
.msfah-empty-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--msfah-card-light);
    border: 1px dashed var(--msfah-border-light);
    border-radius: 12px;
    text-align: center;
    color: var(--msfah-text-muted);
}

.msfah-dark .msfah-empty-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-empty-v2 .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.msfah-empty-v2 p {
    margin: 0 0 16px;
}

.msfah-empty-text {
    text-align: center;
    color: var(--msfah-text-muted);
    padding: 24px;
}

/* Modal */
.msfah-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.msfah-modal-v2 {
    background: var(--msfah-card-light);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.msfah-dark .msfah-modal-v2 {
    background: var(--msfah-card-dark);
}

.msfah-modal-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-modal-header-v2 {
    border-color: var(--msfah-border-dark);
}

.msfah-modal-header-v2 h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.msfah-modal-header-v2 button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--msfah-bg-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msfah-text-muted);
}

.msfah-modal-header-v2 button:hover {
    background: #ef4444;
    color: white;
}

.msfah-modal-content-v2 {
    padding: 24px;
    overflow-y: auto;
}

.msfah-student-info-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--msfah-bg-light);
    border-radius: 8px;
    margin-bottom: 24px;
}

.msfah-dark .msfah-student-info-v2 {
    background: rgba(255, 255, 255, 0.05);
}

.msfah-student-info-v2 p {
    margin: 0;
    font-size: 14px;
}

/* Progress Bar */
.msfah-progress-bar-v2 {
    width: 60px;
    height: 6px;
    background: var(--msfah-border-light);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    margin-right: 8px;
}

.msfah-progress-fill-v2 {
    height: 100%;
    background: var(--msfah-primary);
    border-radius: 3px;
}

/* Course Grid */
.msfah-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.msfah-course-card-v2 {
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-dark .msfah-course-card-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-course-card-v2:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.msfah-course-card-thumb {
    height: 120px;
    background: linear-gradient(135deg, var(--msfah-primary) 0%, #7c3aed 100%) center/cover;
}

.msfah-course-card-body {
    padding: 16px;
}

.msfah-course-card-body h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.msfah-course-card-body p {
    margin: 0;
    font-size: 14px;
    color: var(--msfah-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.msfah-selected-course-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
}

.msfah-dark .msfah-selected-course-header {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-selected-course-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Settings Form */
.msfah-settings-form {
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    padding: 24px;
}

.msfah-dark .msfah-settings-form {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-form-group {
    margin-bottom: 24px;
}

.msfah-form-group:last-child {
    margin-bottom: 0;
}

.msfah-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.msfah-form-group input,
.msfah-form-group textarea,
.msfah-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--msfah-bg-light);
    color: inherit;
}

.msfah-dark .msfah-form-group input,
.msfah-dark .msfah-form-group textarea,
.msfah-dark .msfah-form-group select {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
}

.msfah-form-help {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 8px 0 0;
}

/* Zoom Cards */
.msfah-zoom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.msfah-zoom-card-v2 {
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    overflow: hidden;
}

.msfah-dark .msfah-zoom-card-v2 {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-zoom-card-header {
    height: 140px;
    background: linear-gradient(135deg, var(--msfah-primary) 0%, #7c3aed 100%) center/cover;
    position: relative;
}

.msfah-zoom-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.msfah-zoom-card-v2--today .msfah-zoom-status {
    background: #ef4444;
}

.msfah-zoom-card-v2--upcoming .msfah-zoom-status {
    background: #22c55e;
}

.msfah-zoom-card-v2--past .msfah-zoom-status {
    background: #64748b;
}

.msfah-zoom-card-body {
    padding: 16px;
}

.msfah-zoom-card-body h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.msfah-zoom-card-body h4 a {
    color: inherit;
}

.msfah-zoom-card-body h4 a:hover {
    color: var(--msfah-primary);
}

.msfah-zoom-card-body p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--msfah-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Events */
.msfah-events-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    padding: 16px;
}

.msfah-dark .msfah-event-card {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 12px;
    background: var(--msfah-primary);
    color: white;
    border-radius: 8px;
}

.msfah-event-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.msfah-event-month {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.msfah-event-info {
    flex: 1;
}

.msfah-event-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.msfah-event-info p {
    margin: 0;
    font-size: 14px;
    color: var(--msfah-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.msfah-event-actions {
    display: flex;
    gap: 8px;
}

/* No Access */
.msfah-no-access-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    color: var(--msfah-text-muted);
}

.msfah-no-access-v2 .material-symbols-outlined {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.msfah-no-access-v2 h2 {
    margin: 0;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .msfah-sidebar-v2 {
        transform: translateX(-100%);
    }

    .msfah-sidebar-v2:not(.msfah-sidebar-v2--hidden) {
        transform: translateX(0);
    }

    .msfah-main-v2 {
        margin-left: 0;
    }

    .msfah-menu-btn-v2 {
        display: flex;
    }

    .msfah-header-search-v2 {
        display: none;
    }

    .msfah-user-text-v2 {
        display: none;
    }

    .msfah-content-v2 {
        padding: 16px;
    }

    .msfah-stat-cards {
        grid-template-columns: 1fr;
    }

    .msfah-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Checkbox Group for Zoom Settings */
.msfah-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--msfah-bg-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.msfah-dark .msfah-checkbox-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
}

.msfah-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.msfah-dark .msfah-checkbox-label {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-checkbox-label:hover {
    border-color: var(--msfah-primary);
}

.msfah-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--msfah-primary);
    cursor: pointer;
}

.msfah-checkbox-label input[type="checkbox"]:checked+span {
    color: var(--msfah-primary);
    font-weight: 500;
}

/* Header Buttons Group */
.msfah-header-buttons {
    display: flex;
    gap: 8px;
}

.msfah-header-buttons .msfah-btn-v2 {
    white-space: nowrap;
}

/* Fix button text visibility */
.msfah-btn-v2 .material-symbols-outlined {
    margin-right: 4px;
}

/* Ensure buttons have proper contrast */
.msfah-btn-v2--secondary:hover {
    background: var(--msfah-border-light);
}

.msfah-dark .msfah-btn-v2--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* View Toggle */
.msfah-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--msfah-bg-light);
    border-radius: 8px;
    padding: 4px;
}

.msfah-dark .msfah-view-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.msfah-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--msfah-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-view-btn:hover {
    color: var(--msfah-primary);
}

.msfah-view-btn--active {
    background: var(--msfah-primary);
    color: white !important;
}

/* Calendar Container */
.msfah-calendar-container {
    background: var(--msfah-card-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    overflow: hidden;
}

.msfah-dark .msfah-calendar-container {
    background: var(--msfah-card-dark);
    border-color: var(--msfah-border-dark);
}

.msfah-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--msfah-bg-light);
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-calendar-header {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
}

.msfah-calendar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.msfah-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--msfah-card-light);
    border-radius: 8px;
    color: var(--msfah-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-dark .msfah-calendar-nav {
    background: rgba(255, 255, 255, 0.1);
}

.msfah-calendar-nav:hover {
    background: var(--msfah-primary);
    color: white;
}

.msfah-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-calendar-weekdays {
    border-color: var(--msfah-border-dark);
}

.msfah-calendar-weekday {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--msfah-text-muted);
    text-transform: uppercase;
}

.msfah-calendar-weekday:first-child {
    color: #ef4444;
}

.msfah-calendar-weekday:last-child {
    color: #3b82f6;
}

.msfah-calendar-body {
    padding: 8px;
}

.msfah-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.msfah-calendar-day {
    min-height: 80px;
    padding: 8px;
    border-radius: 8px;
    background: var(--msfah-bg-light);
    transition: all 0.2s;
}

.msfah-dark .msfah-calendar-day {
    background: rgba(255, 255, 255, 0.03);
}

.msfah-calendar-day--empty {
    background: transparent;
}

.msfah-calendar-day--today {
    background: rgba(19, 127, 236, 0.1);
    border: 2px solid var(--msfah-primary);
}

.msfah-calendar-day--has-events {
    background: rgba(34, 197, 94, 0.1);
}

.msfah-calendar-day-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.msfah-calendar-day--today .msfah-calendar-day-number {
    background: var(--msfah-primary);
    color: white;
    border-radius: 50%;
}

.msfah-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msfah-calendar-event-dot {
    padding: 2px 6px;
    background: var(--msfah-primary);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.msfah-calendar-event-dot:hover {
    background: var(--msfah-primary-hover);
}

/* Product Cell */
.msfah-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msfah-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--msfah-border-light);
    flex-shrink: 0;
}

.msfah-product-title {
    font-weight: 600;
    margin: 0 0 4px 0;
}

.msfah-product-meta {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 0;
}

.msfah-order-email {
    font-size: 12px;
    color: var(--msfah-text-muted);
    margin: 0;
}

/* Modal Styles */
.msfah-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.msfah-modal {
    background: var(--msfah-card-light);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.msfah-dark .msfah-modal {
    background: var(--msfah-card-dark);
}

.msfah-modal--large {
    max-width: 700px;
}

.msfah-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-modal-header {
    border-color: var(--msfah-border-dark);
}

.msfah-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.msfah-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--msfah-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-modal-close:hover {
    background: var(--msfah-border-light);
    color: var(--msfah-primary);
}

.msfah-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.msfah-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-modal-footer {
    border-color: var(--msfah-border-dark);
}

/* Form Styles */
.msfah-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.msfah-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.msfah-form-group--full {
    grid-column: 1 / -1;
}

.msfah-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--msfah-text-muted);
}

.msfah-form-group input,
.msfah-form-group select,
.msfah-form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--msfah-card-light);
    color: inherit;
    transition: all 0.2s;
}

.msfah-dark .msfah-form-group input,
.msfah-dark .msfah-form-group select,
.msfah-dark .msfah-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
}

.msfah-form-group input:focus,
.msfah-form-group select:focus,
.msfah-form-group textarea:focus {
    outline: none;
    border-color: var(--msfah-primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.15);
}

/* Order Detail */
.msfah-order-detail p {
    margin: 8px 0;
}

.msfah-order-detail hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-order-detail hr {
    border-color: var(--msfah-border-dark);
}

.msfah-order-detail h4 {
    margin: 16px 0 12px;
    font-size: 15px;
}

/* Action Button Danger */
.msfah-action-btn-v2--danger {
    color: #ef4444 !important;
}

.msfah-action-btn-v2--danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Actions Group */
.msfah-actions-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .msfah-form-grid {
        grid-template-columns: 1fr;
    }

    .msfah-modal {
        max-height: 85vh;
    }
}

/* Extra Large Modal */
.msfah-modal--xlarge {
    max-width: 900px;
}

/* Thumbnail Upload */
.msfah-thumbnail-upload {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.msfah-thumbnail-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 150px;
    height: 150px;
    border: 2px dashed var(--msfah-border-light);
    border-radius: 12px;
    background: var(--msfah-bg-light);
    color: var(--msfah-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-dark .msfah-thumbnail-add {
    border-color: var(--msfah-border-dark);
    background: rgba(255, 255, 255, 0.03);
}

.msfah-thumbnail-add:hover {
    border-color: var(--msfah-primary);
    color: var(--msfah-primary);
    background: rgba(19, 127, 236, 0.05);
}

.msfah-thumbnail-add span {
    font-size: 13px;
    font-weight: 500;
}

.msfah-thumbnail-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msfah-thumbnail-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-thumbnail-preview img {
    border-color: var(--msfah-border-dark);
}

.msfah-thumbnail-actions {
    display: flex;
    gap: 8px;
}

.msfah-btn-v2--small {
    padding: 6px 12px;
    font-size: 12px;
}

.msfah-btn-v2--danger {
    background: #ef4444;
    color: white !important;
}

.msfah-btn-v2--danger:hover {
    background: #dc2626;
}

/* WordPress Editor Container */
.msfah-wp-editor-container {
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.msfah-dark .msfah-wp-editor-container {
    border-color: var(--msfah-border-dark);
}

.msfah-wp-editor-container .wp-editor-tabs {
    background: var(--msfah-bg-light);
}

.msfah-wp-editor-container .mce-tinymce {
    border: none !important;
}

.msfah-wp-editor-container .mce-toolbar-grp {
    background: var(--msfah-bg-light) !important;
    border-bottom: 1px solid var(--msfah-border-light) !important;
}

.msfah-wp-editor-container textarea {
    width: 100% !important;
    min-height: 300px;
    border: none !important;
    padding: 12px;
}

/* Product Tabs */
.msfah-product-tabs {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    background: var(--msfah-bg-light);
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-product-tabs {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--msfah-border-dark);
}

.msfah-product-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--msfah-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.msfah-product-tab:hover {
    color: var(--msfah-primary);
}

.msfah-product-tab.active {
    color: var(--msfah-primary);
    border-bottom-color: var(--msfah-primary);
}

/* Thumbnail Buttons */
.msfah-thumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-thumb-btn--change {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.msfah-thumb-btn--change:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.msfah-thumb-btn--delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.msfah-thumb-btn--delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

/* Radio Group */
.msfah-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.msfah-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--msfah-primary);
}

/* Attributes Section */
.msfah-attributes-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msfah-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.msfah-section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.msfah-empty-text {
    text-align: center;
    color: var(--msfah-text-muted);
    padding: 40px 20px;
    background: var(--msfah-bg-light);
    border-radius: 12px;
    border: 2px dashed var(--msfah-border-light);
}

.msfah-dark .msfah-empty-text {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--msfah-border-dark);
}

/* Attribute Card */
.msfah-attribute-card {
    background: var(--msfah-bg-light);
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    overflow: hidden;
}

.msfah-dark .msfah-attribute-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--msfah-border-dark);
}

.msfah-attribute-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--msfah-border-light);
}

.msfah-dark .msfah-attribute-header {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--msfah-border-dark);
}

.msfah-attr-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: white;
}

.msfah-dark .msfah-attr-name-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
    color: inherit;
}

.msfah-attr-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.msfah-attr-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Options List */
.msfah-options-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msfah-option-img,
.msfah-option-img-add {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--msfah-border-light);
    border: 1px solid var(--msfah-border-light);
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-option-img:hover,
.msfah-option-img-add:hover {
    border-color: var(--msfah-primary);
}

.msfah-option-img-add {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--msfah-text-muted);
    background: transparent;
}

.msfah-option-value {
    flex: 2;
    padding: 10px 12px;
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    font-size: 14px;
}

.msfah-option-price {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--msfah-border-light);
    border-radius: 8px;
    font-size: 14px;
}

.msfah-dark .msfah-option-value,
.msfah-dark .msfah-option-price {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--msfah-border-dark);
    color: inherit;
}

.msfah-option-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-option-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.msfah-add-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px dashed var(--msfah-border-light);
    background: transparent;
    color: var(--msfah-primary);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.msfah-add-option-btn:hover {
    background: rgba(19, 127, 236, 0.05);
    border-color: var(--msfah-primary);
}

/* WordPress Editor Wrap */
.msfah-wp-editor-wrap {
    border: 1px solid var(--msfah-border-light);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.msfah-dark .msfah-wp-editor-wrap {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--msfah-border-dark);
}

/* Editor Header */
.msfah-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.msfah-editor-header label {
    font-weight: 600;
    font-size: 14px;
}

/* Editor Toolbar - Premium Design */
.msfah-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Media Button - Tab Style */
.msfah-wp-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.msfah-wp-media-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

.msfah-wp-media-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* Editor Mode Switch - Tab Style */
.msfah-editor-mode-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.msfah-mode-btn {
    padding: 12px 20px;
    background: transparent;
    color: #64748b;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.msfah-mode-btn:first-child {
    border-right: none;
}

.msfah-mode-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
}

.msfah-mode-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* 커스텀 에디터: 기존 WP 버튼 숨김 */
.msfah-editor-custom .wp-media-buttons,
.msfah-editor-custom .wp-editor-tabs {
    display: none !important;
}

.msfah-wp-editor-wrap .wp-editor-tabs {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--msfah-border-light);
    padding: 8px 12px 0;
}

.msfah-wp-editor-wrap .wp-switch-editor {
    background: white;
    border: 1px solid var(--msfah-border-light);
    border-bottom: none;
    color: var(--msfah-text-muted);
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    float: right;
    position: relative;
    z-index: 1;
}

.msfah-wp-editor-wrap .wp-switch-editor.switch-tmce {
    margin-left: 4px;
}

.msfah-wp-editor-wrap .wp-switch-editor:hover {
    color: var(--msfah-primary);
    cursor: pointer;
}

.msfah-wp-editor-wrap .html-active .switch-html,
.msfah-wp-editor-wrap .tmce-active .switch-tmce {
    background: var(--msfah-primary);
    color: white;
    border-color: var(--msfah-primary);
}

/* 에디터 탭 컨테이너 */
.msfah-wp-editor-wrap .wp-editor-tabs {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--msfah-border-light);
    overflow: visible;
}

/* 미디어 버튼 */
.msfah-wp-editor-wrap .wp-media-buttons {
    position: relative;
    z-index: 10;
    padding: 8px 12px;
    float: left;
}

.msfah-wp-editor-wrap .wp-media-buttons .button {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.msfah-wp-editor-wrap .wp-media-buttons .button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* 에디터 툴바 래퍼 */
.msfah-wp-editor-wrap .wp-editor-container {
    clear: both;
}

.msfah-wp-editor-wrap .mce-tinymce {
    border: none !important;
}

.msfah-wp-editor-wrap .mce-toolbar-grp {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border-bottom: 1px solid var(--msfah-border-light) !important;
    padding: 8px !important;
}

.msfah-wp-editor-wrap .mce-btn {
    background: white !important;
    border-radius: 6px !important;
}

.msfah-wp-editor-wrap .mce-btn:hover {
    background: var(--msfah-primary) !important;
    color: white !important;
}

.msfah-wp-editor-wrap textarea {
    width: 100% !important;
    min-height: 350px;
    border: none !important;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* 모달 내부 z-index 수정 */
.msfah-modal .mce-floatpanel,
.msfah-modal .mce-window {
    z-index: 10100 !important;
}

.msfah-modal .mce-tooltip {
    z-index: 10101 !important;
}

/* WP 미디어 모달 z-index */
.media-modal {
    z-index: 10200 !important;
}

.media-modal-backdrop {
    z-index: 10199 !important;
}

/* =====================================================
   PREMIUM PRODUCT EDITOR STYLES
   ===================================================== */

/* Product Tabs - Premium Design */
.msfah-product-tabs {
    display: flex;
    gap: 6px;
    padding: 16px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.msfah-product-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.msfah-product-tab:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
}

.msfah-product-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.msfah-product-tab .material-icons {
    font-size: 18px;
}

/* Thumbnail Upload - Premium Design */
.msfah-thumbnail-upload {
    margin-top: 8px;
}

.msfah-thumbnail-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.msfah-thumbnail-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 3px solid white;
}

.msfah-thumbnail-actions {
    display: flex;
    gap: 10px;
}

/* Premium Thumbnail Buttons - Tab Style */
.msfah-thumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #64748b;
}

.msfah-thumb-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
}

.msfah-thumb-btn--change {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.msfah-thumb-btn--change:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

.msfah-thumb-btn--delete {
    background: transparent;
    color: #64748b;
    box-shadow: none;
}

.msfah-thumb-btn--delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-1px);
}

/* Thumbnail Add Button */
.msfah-thumbnail-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 200px;
    height: 200px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msfah-thumbnail-add:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: scale(1.02);
}

.msfah-thumbnail-add .material-icons {
    font-size: 48px;
    opacity: 0.7;
}

.msfah-thumbnail-add span {
    font-size: 14px;
    font-weight: 500;
}

/* Modal Footer Buttons - Premium */
.msfah-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

.msfah-modal-footer .msfah-btn-v2--secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.msfah-modal-footer .msfah-btn-v2--secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.msfah-modal-footer .msfah-btn-v2--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.msfah-modal-footer .msfah-btn-v2--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Add Attribute Button - Premium */
.msfah-add-attr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.msfah-add-attr:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Add Option Button - Premium */
.msfah-add-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #059669;
    border: 2px dashed #86efac;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msfah-add-option-btn:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #4ade80;
}

/* =====================================================
   PRODUCT DESIGN SETTINGS PAGE
   ===================================================== */

.msfah-design-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.msfah-settings-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.msfah-settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.msfah-settings-card-header .material-symbols-outlined {
    color: #3b82f6;
}

.msfah-settings-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.msfah-settings-card-body {
    padding: 20px 24px;
}

.msfah-setting-row {
    margin-bottom: 16px;
}

.msfah-setting-row:last-child {
    margin-bottom: 0;
}

.msfah-setting-row>label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.msfah-setting-row input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msfah-setting-row input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.msfah-checkbox-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 0;
}

.msfah-checkbox-setting input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.msfah-checkbox-setting span {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.msfah-color-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.msfah-color-input input[type="color"] {
    width: 48px;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    padding: 4px;
}

.msfah-color-input input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
}

/* Select Input Style */
.msfah-modal-footer .msfah-btn-v2--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.msfah-modal-footer .msfah-btn-v2--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Add Attribute Button - Premium */
.msfah-add-attr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.msfah-add-attr:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Add Option Button - Premium */
.msfah-add-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #059669;
    border: 2px dashed #86efac;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msfah-add-option-btn:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #4ade80;
}

/* =====================================================
   PRODUCT DESIGN SETTINGS PAGE
   ===================================================== */

.msfah-design-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.msfah-settings-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.msfah-settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.msfah-settings-card-header .material-symbols-outlined {
    color: #3b82f6;
}

.msfah-settings-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.msfah-settings-card-body {
    padding: 20px 24px;
}

.msfah-setting-row {
    margin-bottom: 16px;
}

.msfah-setting-row:last-child {
    margin-bottom: 0;
}

.msfah-setting-row>label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.msfah-setting-row input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msfah-setting-row input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.msfah-checkbox-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 0;
}

.msfah-checkbox-setting input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.msfah-checkbox-setting span {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.msfah-color-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

.msfah-color-input input[type="color"] {
    width: 48px;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    padding: 4px;
}

.msfah-color-input input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
}

/* Select Input Style */
.msfah-select-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msfah-select-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===================================
   Orders Pro Component
   =================================== */

/* Toast Messages */
.msfah-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.msfah-toast--success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.msfah-toast--error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Stats Grid */
.msfah-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.msfah-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.msfah-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.msfah-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
}

.msfah-stat-card--primary .msfah-stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.msfah-stat-card--success .msfah-stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.msfah-stat-card--warning .msfah-stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.msfah-stat-content {
    flex: 1;
}

.msfah-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.msfah-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.msfah-stat-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Advanced Filter Bar */
.msfah-filter-bar--advanced {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.msfah-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.msfah-date-range input {
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 14px;
    outline: none;
}

.msfah-date-range span {
    color: #94a3b8;
}

/* Bulk Actions Bar */
.msfah-bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 12px;
    margin-bottom: 16px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.msfah-bulk-count {
    font-weight: 600;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.msfah-bulk-bar .msfah-btn--secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    color: white;
}

.msfah-bulk-bar .msfah-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.msfah-bulk-bar .msfah-btn--text {
    color: rgba(255, 255, 255, 0.8);
    margin-left: auto;
}

/* Status Select */
.msfah-status-select {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid;
    background: white;
    cursor: pointer;
    outline: none;
    transition: box-shadow 0.2s;
}

.msfah-status-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Tracking Badge */
.msfah-tracking-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.msfah-no-tracking {
    color: #94a3b8;
    font-size: 13px;
}

/* Table Hoverable */
.msfah-table--hoverable tbody tr {
    transition: background-color 0.15s;
}

.msfah-table--hoverable tbody tr:hover {
    background-color: #f8fafc;
}

.msfah-table--hoverable tbody tr.selected {
    background-color: #eff6ff;
}

/* Action Buttons */
.msfah-action-btn--primary {
    background: #3b82f6;
    color: white;
}

.msfah-action-btn--primary:hover {
    background: #2563eb;
}

/* Modal Pro */
.msfah-modal--pro {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.msfah-modal--pro .msfah-modal__header {
    border-bottom: 1px solid #e2e8f0;
}

.msfah-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modal Tabs */
.msfah-modal__tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    background: #f8fafc;
}

.msfah-modal__tabs button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.msfah-modal__tabs button:hover {
    color: #3b82f6;
}

.msfah-modal__tabs button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: white;
}

/* Modal Content */
.msfah-modal--pro .msfah-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Modal Footer */
.msfah-modal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.msfah-modal__footer-left,
.msfah-modal__footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Order Detail Grid */
.msfah-order-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .msfah-order-detail__grid {
        grid-template-columns: 1fr;
    }
}

/* Info List */
.msfah-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-info-list>div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.msfah-info-list label {
    color: #64748b;
    font-size: 13px;
}

.msfah-info-list span {
    font-weight: 500;
    color: #1e293b;
    text-align: right;
}

/* Tracking Info */
.msfah-tracking-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.msfah-tracking-info__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msfah-tracking-number {
    font-family: monospace;
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
}

.msfah-no-tracking-box {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.msfah-no-tracking-box p {
    margin-bottom: 16px;
    color: #64748b;
}

/* Notes */
.msfah-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.msfah-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-note {
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
}

.msfah-note--customer {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.msfah-note__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.msfah-note__author {
    font-weight: 600;
    color: #64748b;
}

.msfah-note__date {
    color: #94a3b8;
}

.msfah-note__content {
    color: #334155;
    line-height: 1.6;
}

.msfah-empty-notes {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Shipping Methods */
.msfah-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.msfah-shipping-methods li {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Form Elements */
.msfah-form-group {
    margin-bottom: 18px;
}

.msfah-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}

.msfah-form-group input[type="text"],
.msfah-form-group input[type="number"],
.msfah-form-group input[type="url"],
.msfah-form-group textarea,
.msfah-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msfah-form-group input:focus,
.msfah-form-group textarea:focus,
.msfah-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.msfah-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.msfah-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* Refund Info */
.msfah-refund-info {
    padding: 16px;
    background: #fef3c7;
    border-radius: 10px;
    margin-bottom: 20px;
}

.msfah-refund-info strong {
    color: #d97706;
    font-size: 18px;
}

/* Danger Button */
.msfah-btn--danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.msfah-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Header Actions */
.msfah-header-actions {
    display: flex;
    gap: 12px;
}

/* Page Header Enhancement */
.msfah-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.msfah-page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Dark Mode Support */
.msfah-dark .msfah-stat-card,
.msfah-dark .msfah-filter-bar--advanced,
.msfah-dark .msfah-modal--pro {
    background: #1e293b;
    border-color: #334155;
}

.msfah-dark .msfah-stat-value,
.msfah-dark .msfah-info-list span {
    color: #f1f5f9;
}

.msfah-dark .msfah-modal__tabs {
    background: #15202b;
}

.msfah-dark .msfah-modal__tabs button.active {
    background: #1e293b;
}

/* Notes */
.msfah-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.msfah-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-note {
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
}

.msfah-note--customer {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.msfah-note__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.msfah-note__author {
    font-weight: 600;
    color: #64748b;
}

.msfah-note__date {
    color: #94a3b8;
}

.msfah-note__content {
    color: #334155;
    line-height: 1.6;
}

.msfah-empty-notes {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Shipping Methods */
.msfah-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.msfah-shipping-methods li {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Form Elements */
.msfah-form-group {
    margin-bottom: 18px;
}

.msfah-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}

.msfah-form-group input[type="text"],
.msfah-form-group input[type="number"],
.msfah-form-group input[type="url"],
.msfah-form-group textarea,
.msfah-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msfah-form-group input:focus,
.msfah-form-group textarea:focus,
.msfah-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.msfah-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.msfah-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* Refund Info */
.msfah-refund-info {
    padding: 16px;
    background: #fef3c7;
    border-radius: 10px;
    margin-bottom: 20px;
}

.msfah-refund-info strong {
    color: #d97706;
    font-size: 18px;
}

/* Danger Button */
.msfah-btn--danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.msfah-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Header Actions */
.msfah-header-actions {
    display: flex;
    gap: 12px;
}

/* Page Header Enhancement */
.msfah-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.msfah-page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Dark Mode Support */
.msfah-dark .msfah-stat-card,
.msfah-dark .msfah-filter-bar--advanced,
.msfah-dark .msfah-modal--pro {
    background: #1e293b;
    border-color: #334155;
}

.msfah-dark .msfah-stat-value,
.msfah-dark .msfah-info-list span {
    color: #f1f5f9;
}

.msfah-dark .msfah-modal__tabs {
    background: #15202b;
}

.msfah-dark .msfah-modal__tabs button.active {
    background: #1e293b;
}

.msfah-dark .msfah-modal__footer {
    background: #15202b;
}

align-items: center;
margin-bottom: 16px;
}

.msfah-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msfah-note {
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
}

.msfah-note--customer {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.msfah-note__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.msfah-note__author {
    font-weight: 600;
    color: #64748b;
}

.msfah-note__date {
    color: #94a3b8;
}

.msfah-note__content {
    color: #334155;
    line-height: 1.6;
}

.msfah-empty-notes {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Shipping Methods */
.msfah-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.msfah-shipping-methods li {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Form Elements */
.msfah-form-group {
    margin-bottom: 18px;
}

.msfah-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}

.msfah-form-group input[type="text"],
.msfah-form-group input[type="number"],
.msfah-form-group input[type="url"],
.msfah-form-group textarea,
.msfah-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.msfah-form-group input:focus,
.msfah-form-group textarea:focus,
.msfah-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.msfah-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.msfah-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

/* Refund Info */
.msfah-refund-info {
    padding: 16px;
    background: #fef3c7;
    border-radius: 10px;
    margin-bottom: 20px;
}

.msfah-refund-info strong {
    color: #d97706;
    font-size: 18px;
}

/* Danger Button */
.msfah-btn--danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.msfah-btn--danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Header Actions */
.msfah-header-actions {
    display: flex;
    gap: 12px;
}

/* Page Header Enhancement */
.msfah-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.msfah-page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Dark Mode Support */
.msfah-dark .msfah-stat-card,
.msfah-dark .msfah-filter-bar--advanced,
.msfah-dark .msfah-modal--pro {
    background: #1e293b;
    border-color: #334155;
}

.msfah-dark .msfah-stat-value,
.msfah-dark .msfah-info-list span {
    color: #f1f5f9;
}

.msfah-dark .msfah-modal__tabs {
    background: #15202b;
}

.msfah-dark .msfah-modal__tabs button.active {
    background: #1e293b;
}

.msfah-dark .msfah-modal__footer {
    background: #15202b;
}

.msfah-dark .msfah-note {
    background: #1e293b;
}

.msfah-dark .msfah-form-group input,
.msfah-dark .msfah-form-group textarea,
.msfah-dark .msfah-form-group select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

/* ============================================
   WordPress Admin Bar Fix - Sidebar Top Margin
   ============================================ */
.msfah-sidebar-v2 {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
}

.msfah-main-v2 {
    padding-top: 80px;
}

/* Orders and Students page layout fix - move 100px left */
.msfah-orders-v2,
.msfah-students-v2 {
    margin-left: -100px;
    max-width: calc(100% + 100px);
}
/* Numeric Pagination Buttons for Students */
.msfah-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msfah-page-btn:hover {
    background: #137fec;
    border-color: #137fec;
    color: white;
}

.msfah-page-btn--active {
    background: #137fec;
    border-color: #137fec;
    color: white;
    box-shadow: 0 2px 6px rgba(19, 127, 236, 0.3);
}

.msfah-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #64748b;
}

.msfah-dark .msfah-page-btn {
    background: #15202b;
    border-color: #1e293b;
    color: #f8fafc;
}

.msfah-dark .msfah-page-btn:hover,
.msfah-dark .msfah-page-btn--active {
    background: #137fec;
    border-color: #137fec;
    color: white;
}
