/* ============================================
   MODERN ADMIN SETTINGS - SUPER EASY MAINTENANCE MODE
   ============================================ */

/* Main Container */
.wrap.maintenance-setting-card {
    /* max-width: 1200px; */
    margin: 10px 20px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    overflow: hidden;
}

/* Header Section */
.wrap.maintenance-setting-card > h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 30px 40px;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px 12px 0 0;
}

/* Tab Navigation */
.super-easy-mm-admin .nav-tab-wrapper {
    background: #f8f9fa;
    padding: 0 40px;
    margin: 0;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    gap: 5px;
}

.super-easy-mm-admin .nav-tab {
    position: relative;
    padding: 18px 32px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.super-easy-mm-admin .nav-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.super-easy-mm-admin .nav-tab-active {
    color: #667eea;
    background: transparent;
    border-bottom: 3px solid #667eea;
    box-shadow: none;
}

/* Tab Content */
.tab-content {
    padding: 40px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Table Styling */
.super-easy-mm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}

.super-easy-mm-table tr {
    background: #ffffff;
}

.super-easy-mm-table th {
    width: 280px;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    vertical-align: top;
    padding-top: 12px;
}

.super-easy-mm-table td {
    padding: 8px 0;
}

.super-easy-mm-table input[type="text"],
.super-easy-mm-table input[type="email"],
.super-easy-mm-table textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.super-easy-mm-table input[type="text"]:focus,
.super-easy-mm-table input[type="email"]:focus,
.super-easy-mm-table textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.super-easy-mm-table textarea {
    min-height: 120px;
    resize: vertical;
}

.super-easy-mm-table .description {
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

/* Toggle Switch (Modern Style) */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin-right: 12px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e0;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Color Picker Styling */
.maintenance-color-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: fit-content;
}

.maintenance-color-field:hover {
    border-color: #cbd5e0;
}

.maintenance-color-field input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.maintenance-color-field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.maintenance-color-field input[type="color"]::-webkit-color-swatch {
    border: 2px solid #ffffff;
    border-radius: 6px;
}

.maintenance-color-field label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    min-width: 100px;
}

/* Background Image Selection */
.bg-image-option {
    position: relative;
    width: 120px;
    height: 80px;
    border: 3px solid #e9ecef;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bg-image-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bg-image-option.active-bg {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.bg-image-option .super-easy-mm-yes {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 24px !important;
    color: #667eea;
    background: white;
    border-radius: 50%;
    padding: 2px;
}

/* Opacity Range Slider */
#super_easy_mm_bg_opacity {
    width: 100%;
    max-width: 400px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e9ecef 0%, #667eea 100%);
    outline: none;
    margin-right: 12px;
}

#super_easy_mm_bg_opacity::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

#super_easy_mm_bg_opacity::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

#opacity-value {
    display: inline-block;
    min-width: 40px;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
}

/* Tag Input Styling */
.tag-wrapper {
    max-width: 600px;
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.tag-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.tags-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tags-input input[type="text"] {
    flex: 1;
    padding: 8px;
    border: none !important;
    background: transparent;
    outline: none;
    min-width: 150px;
    font-size: 14px;
}

.tag-pill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tag-pill .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

/* Suggestion Box */
.suggestion-box {
    margin-top: 8px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    position: absolute;
    width: calc(100% - 80px);
    max-width: 520px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;
}

.suggestion-box li {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.suggestion-box li:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Button Styling */
.super-easy-mm-admin .button,
.button-secondary {
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
}

.super-easy-mm-admin .button:hover,
.button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.super-easy-mm-admin .button-primary,
#submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    padding: 14px 40px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.super-easy-mm-admin .button-primary:hover,
#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffe6e8;
    border-left: 3px solid #dc3545;
    border-radius: 4px;
}

/* Success Message */
.updated {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 12px 20px;
    margin: 20px 40px;
    border-radius: 4px;
    color: #155724;
}

/* Admin Bar Status Indicator */
.maintenance-mode-status-on {
    color: #28a745;
    font-weight: 600;
}

.maintenance-mode-status-off {
    color: #6c757d;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wrap.maintenance-setting-card {
        margin: 20px;
    }
    
    .tab-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .super-easy-mm-admin .nav-tab-wrapper {
        padding: 0 20px;
        flex-wrap: wrap;
    }
    
    .super-easy-mm-admin .nav-tab {
        padding: 14px 20px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .super-easy-mm-table th {
        width: 100%;
        display: block;
        padding: 10px 0;
    }
    
    .super-easy-mm-table td {
        display: block;
        padding: 0 0 20px 0;
    }
    
    .super-easy-mm-table tr {
        display: block;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid #f8f9fa;
    }
}

/* Custom Scrollbar */
.suggestion-box::-webkit-scrollbar {
    width: 8px;
}

.suggestion-box::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.suggestion-box::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.suggestion-box::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}