/* Custom Smart Modal Admin Styles */

/* Main container styling */
.wrap {
    max-width: 1100px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
}

/* Header styling */
.wrap h1 {
    color: #23282d;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f1f1;
    position: relative;
}

.wrap h1:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: #0073aa;
}

/* Form styling */
.form-table {
    border-collapse: separate;
    border-spacing: 0 15px;
    width: 100%;
}

.form-table tr {
    background: #fbfbfb;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.form-table tr:hover {
    background: #f7f7f7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Table cell styling */
.form-table th, 
.form-table td {
    padding: 20px;
    vertical-align: top;
}

.form-table th {
    width: 230px;
    font-weight: 600;
    color: #23282d;
    text-align: left;
    border-left: 3px solid #0073aa;
}



/* Input field styling */
.form-table input[type="text"],
.form-table input[type="number"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    transition: border-color 0.15s ease-in-out;
}

.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus,
.form-table select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Color input styling */
.form-table input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

/* Select styling */
.form-table select {
    min-width: 200px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Checkbox styling */
.form-table input[type="checkbox"] {
    position: relative;
    width: 45px;
    height: 22px;
    -webkit-appearance: none;
    background-color: #f1f1f1;
    border-radius: 25px;
    outline: none;
    transition: .3s;
    cursor: pointer;
    border: 1px solid #ddd;
}

.form-table input[type="checkbox"]:checked {
    background-color: #0073aa;
    border-color: #005d8c;
}

.form-table input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 1px;
    left: 2px;
    background-color: #fff;
    transform: scale(1.1);
    transition: .3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-table input[type="checkbox"]:checked::before {
    left: 27px;
    margin-top: unset;
}

/* Helper text styling */
.description {
    display: block;
    margin-top: 8px;
    color: #666;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
}

/* Submit button styling */
.submit .button-primary {
    background: #0073aa;
    border-color: #005d8c;
    box-shadow: 0 1px 0 #005d8c;
    padding: 5px 18px;
    height: auto;
    line-height: 1.5;
    font-size: 14px;
    text-shadow: none;
    transition: all 0.2s ease;
}

.submit .button-primary:hover {
    background: #008abf;
    border-color: #006799;
}

/* Success message styling */
#message.updated {
    border-left-color: #46b450;
    background-color: #ecf7ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Section headers - add these to your PHP file where appropriate */
.settings-section-header {
    margin: 25px 0 15px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
    font-weight: 600;
    color: #23282d;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .form-table th, 
    .form-table td {
        padding: 15px;
        display: block;
        width: auto;
    }
    
    .form-table th {
        border-left: none;
        border-top: 3px solid #0073aa;
    }
    
    .wrap {
        padding: 15px;
    }
}

/* Color preview swatches */
.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 3px;
    vertical-align: middle;
    border: 1px solid #ddd;
}

/* Add these styles for the accordion functionality */

.custsmmo-settings-section {
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.custsmmo-settings-header {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.custsmmo-settings-header:hover {
    background-color: #f1f1f1;
}

.custsmmo-settings-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    padding: 0;
}

.custsmmo-settings-header .dashicons {
    color: #777;
    font-size: 20px;
    transition: transform 0.2s;
}

.custsmmo-settings-header .dashicons-arrow-up-alt2 {
    transform: rotate(0deg);
}

.custsmmo-settings-header .dashicons-arrow-down-alt2 {
    transform: rotate(0deg);
}

.custsmmo-settings-content {
    padding: 5px 0;
    display: none; /* Hidden by default */
}

.custsmmo-settings-content .form-table {
    margin: 0;
    border-spacing: 0;
}

.custsmmo-settings-content .form-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.custsmmo-settings-content .form-table tr:last-child {
    border-bottom: none;
}

/* Adjust existing styles to work with the accordion */
.form-table {
    border-collapse: collapse;
    border-spacing: 0;
}

