/* ======================== */
/* Stylish Admin Dashboard  */
/* ======================== */

/* Main Settings Container */
.sc-maintenance-settings {
    max-width: 1000px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Form Table Styling */
.sc-maintenance-settings .form-table {
    border-collapse: separate;
    border-spacing: 0 15px;
}
.sc-maintenance-settings .form-table th {
    width: 250px;
    padding: 15px 20px;
    font-weight: 500;
    color: #1d2327;
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
    border-right: 1px solid #e2e4e7;
}
.sc-maintenance-settings .form-table td {
    padding: 15px 20px;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Media Upload Fields */
.sc-upload-button {
    margin-left: 10px;
    background: #3858e9;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 7px 14px;
    transition: all 0.2s ease;
}
.sc-upload-button:hover {
    background: #2a4bd6;
    transform: translateY(-1px);
}
.sc-upload-preview img {
    max-width: 200px;
    height: auto;
    margin-top: 12px;
    display: block;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.sc-upload-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Color Picker Fields */
.wp-picker-container {
    vertical-align: middle;
}
.wp-picker-container .wp-color-result.button {
    height: 36px;
    width: 36px;
    margin: 0 6px 0 0;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.wp-picker-container .wp-color-result.button:hover {
    border-color: #3858e9;
}

/* Range Input Fields */
input[type="range"] {
    width: 250px;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #3858e9 var(--range-percent), #e0e0e0 var(--range-percent));
    border-radius: 3px;
    margin-right: 15px;
    border: 1px solid #3858e9;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3858e9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input[type="range"] + output {
    display: inline-block;
    min-width: 36px;
    padding: 5px 8px;
    background: #3858e9;
    color: white;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
}

/* Social Links Manager */
.sc-social-links-container {
    margin-bottom: 20px;
}
.sc-social-link {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
    transition: all 0.2s ease;
}
.sc-social-link:hover {
    border-color: #3858e9;
    box-shadow: 0 2px 8px rgba(56,88,233,0.1);
}
.sc-social-link select {
    width: 180px;
    margin-right: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}
.sc-social-link input[type="url"] {
    flex: 1;
    margin-right: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}
.sc-remove-social {
    background: #ff4949;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    transition: all 0.2s ease;
}
.sc-remove-social:hover {
    background: #e04040;
    transform: translateY(-1px);
}
.sc-add-social {
    margin-top: 15px;
    background: #3858e9;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sc-add-social:hover {
    background: #2a4bd6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(56,88,233,0.2);
}

/* Field Dependencies */
tr[data-dependency] {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
tr[data-dependency].visible {
    opacity: 1;
    height: auto;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .sc-maintenance-settings {
        padding: 20px;
    }
    .sc-maintenance-settings .form-table th,
    .sc-maintenance-settings .form-table td {
        display: block;
        width: 100%;
        border-radius: 6px;
        margin-bottom: 5px;
    }
    .sc-social-link {
        flex-wrap: wrap;
    }
    .sc-social-link select,
    .sc-social-link input[type="url"] {
        width: 100%;
        margin: 0 0 10px 0;
    }
    .sc-social-link .button {
        width: 100%;
        margin: 5px 0 0 0;
    }
    input[type="range"] {
        width: 180px;
    }
}




/* Animation Enhancements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.sc-maintenance-settings .form-table tr {
    animation: fadeIn 0.3s ease forwards;
}
.sc-maintenance-settings .form-table tr:nth-child(odd) {
    animation-delay: 0.05s;
}


/* Powered By Section */
.sc-powered-by {
    margin: 10px 0 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #50575e;
}

.sc-powered-by a {
    display: inline-flex;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sc-powered-by img {
    height: 35px;
    width: auto;
    filter: brightness(0) saturate(100%);
    opacity: 1;
    transition: all 0.3s ease;
}

.sc-powered-by a:hover img {
    opacity: 1;
    filter: brightness(0) saturate(100%) drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {*/
/*    .sc-powered-by {*/
/*        color: #c3c4c7;*/
/*    }*/
/*    .sc-powered-by img {*/
/*        filter: brightness(0) invert(1) saturate(0);*/
/*        opacity: 0.8;*/
/*    }*/
/*    .sc-powered-by a:hover img {*/
/*        filter: brightness(0) invert(1) saturate(0) drop-shadow(0 1px 1px rgba(255,255,255,0.1));*/
/*    }*/
/*}*/