/**
 * Admin styles for Topbar Countdown Notice
 */

/* Remove dashicons from postbox headers */
.postbox .hndle .dashicons,
.antitoco-postbox .hndle .dashicons {
    display: none !important;
}

/* Adjust spacing after removing icons */
.postbox .hndle,
.antitoco-postbox .hndle {
    padding-left: 12px !important;
}

#poststuff h2 {
    padding: 0;
}

/* Admin wrapper with sidebar */
.antitoco-admin-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.antitoco-admin-main {
    flex: 1;
    max-width: 800px;
}

.antitoco-admin-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.antitoco-sidebar-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    padding: 15px;
    margin-bottom: 20px;
}

.antitoco-sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.antitoco-sidebar-box ul {
    margin: 0;
    padding-left: 20px;
}

.antitoco-sidebar-box li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.antitoco-sidebar-box p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.antitoco-sidebar-box p:last-child {
    margin-bottom: 0;
}

/* PRO sidebar box */
.antitoco-sidebar-pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

.antitoco-sidebar-pro h3 {
    color: #fff;
    font-size: 16px;
}

.antitoco-sidebar-pro p {
    color: #fff;
}

.antitoco-sidebar-pro strong {
    color: #fff;
}

.antitoco-pro-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.antitoco-pro-features li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.antitoco-pro-features li:last-child {
    border-bottom: none;
}

.antitoco-pro-button {
    display: block;
    background: #fff;
    color: #667eea;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 15px 0 10px 0;
    transition: all 0.3s ease;
}

.antitoco-pro-button:hover {
    background: #f0f0f0;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.antitoco-pro-note {
    font-size: 11px;
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

/* Form table styling */
.form-table th {
    width: 200px;
}

.antitoco-color-picker {
    max-width: 100px;
}

/* Conditional fields styling */
.antitoco-conditional-field {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #2271b1;
}

.antitoco-conditional-field.hidden {
    display: none;
}

/* Settings sections */
.antitoco-settings-wrap h2.title,
.antitoco-settings-wrap .antitoco-tab-content h2,
.antitoco-settings-wrap .postbox .hndle,
.antitoco-settings-wrap .stuffbox>h3,
.antitoco-settings-wrap h3.hndle {
    font-size: 1.5em !important;
    padding: 15px !important;
    border-bottom: 1px solid #dcdcde !important;
    border-radius: 4px !important;
    color: #1d2327 !important;
    line-height: 1.4 !important;
}

/* Add padding to form tables after h2 */
.antitoco-settings-wrap h2.title+.form-table,
.antitoco-settings-wrap .antitoco-tab-content h2+.form-table {
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    padding: 20px;
    border-radius: 4px;
}

/* Add padding to form table cells */
.antitoco-settings-wrap .form-table th,
.antitoco-settings-wrap .form-table td {
    padding: 10px 0 !important;
    display: table-cell !important;
}

.antitoco-settings-wrap .form-table th {
    padding-right: 20px !important;
    width: 200px !important;
}

/* Ensure form tables have proper spacing and styling */
.antitoco-settings-wrap .form-table {
    margin-top: 20px !important;
    background: #fff !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04) !important;
    padding: 20px !important;
    border-radius: 4px !important;
    width: 100% !important;
}

/* Datetime input styling */
input[type="datetime-local"] {
    padding: 5px 8px;
}

/* URL field with checkbox below */
.form-table input[type="url"]+br+label {
    margin-top: 8px;
    display: inline-block;
}

/* Editor wrapper */
.wp-editor-wrap {
    max-width: 600px;
}

/* Help text */
.description {
    color: #646970;
    font-style: italic;
}

.description code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Custom CSS textarea */
textarea.code {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .antitoco-admin-wrapper {
        flex-direction: column;
    }

    .antitoco-admin-sidebar {
        width: 100%;
        max-width: 800px;
    }
}

.nav-tab-active, .nav-tab-active:focus, .nav-tab-active:focus:active, .nav-tab-active:hover {
    background: #fff;
}
