/**
 * Content Reveal Countdown - Admin Styles
 * Beautiful settings page design for scheduled content visibility
 */

.contreco-settings-wrap {
    max-width: 1400px;
    margin: 0;
}

/* Header Section */
.contreco-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.contreco-header-content h1 {
    color: white;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contreco-header-content .contreco-icon {
    font-size: 1.2em;
}

.contreco-subtitle {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.contreco-header-actions {
    text-align: right;
}

/* Buy Me Coffee Button */
.contreco-buy-coffee {
    background: #ff813f;
    color: white !important;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 129, 63, 0.4);
}

.contreco-buy-coffee:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 129, 63, 0.6);
    background: #ff6b21;
    color: white;
}

.contreco-coffee-icon {
    font-size: 1.2em;
}

/* Layout */
.contreco-settings-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 20px;
}

.contreco-settings-main {
    min-width: 0;
}

.contreco-settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards */
.contreco-settings-card,
.contreco-sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.contreco-settings-card {
    margin-bottom: 0;
}

/* Form Elements */
.contreco-section-description {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.contreco-section-description p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Toggle Switch */
.contreco-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.contreco-toggle-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.contreco-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.contreco-toggle-inner {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.contreco-toggle-inner:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .contreco-toggle-label .contreco-toggle-inner {
    background-color: #667eea;
}

input:checked + .contreco-toggle-label .contreco-toggle-inner:before {
    transform: translateX(30px);
}

.contreco-toggle-text {
    font-weight: 500;
    color: #333;
}

/* Radio Buttons */
.contreco-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
}

.contreco-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contreco-radio:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.contreco-radio input {
    display: none;
}

.contreco-radio-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.contreco-radio input:checked + .contreco-radio-checkmark {
    border-color: #667eea;
    background: #667eea;
}

.contreco-radio input:checked + .contreco-radio-checkmark:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.contreco-radio-text {
    font-weight: 500;
    color: #333;
}

/* Select Multiple */
.contreco-select-multiple select {
    width: 100%;
    min-height: 150px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
    transition: border-color 0.3s ease;
}

.contreco-select-multiple select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Date Time Input */
.contreco-datetime-input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.contreco-datetime-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Design Preview */
.contreco-design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.contreco-design-option {
    cursor: pointer;
}

.contreco-design-option input {
    display: none;
}

.contreco-design-preview {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.contreco-design-option input:checked + .contreco-design-preview {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.contreco-design-demo {
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contreco-design-name {
    font-weight: 600;
    color: #333;
    display: block;
}

/* Design-specific demo styles */
.design-1 .contreco-design-demo {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.design-1 .contreco-demo-time {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.design-2 .contreco-design-demo {
    background: #1a1a1a;
    border: 2px solid #333;
}

.design-2 .contreco-demo-time {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
}

.design-3 .contreco-design-demo {
    background: transparent;
    border: 2px solid #667eea;
}

.design-3 .contreco-demo-time {
    color: #333;
    font-weight: 300;
    font-size: 1.2em;
}

.design-4 .contreco-design-demo {
    background: white;
    position: relative;
    overflow: hidden;
}

.design-4 .contreco-design-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.design-4 .contreco-demo-time {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

/* Save Button */
.contreco-save-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.contreco-save-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Sidebar Cards */
.contreco-sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.contreco-tips-list,
.contreco-premium-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contreco-tips-list li,
.contreco-premium-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    line-height: 1.5;
}

.contreco-tips-list li:last-child,
.contreco-premium-features li:last-child {
    border-bottom: none;
}

.contreco-premium-features li {
    color: #27ae60;
    font-weight: 500;
}

/* Upgrade Button */
.contreco-upgrade-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.contreco-upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    color: white;
}

/* Support Card */
.contreco-support-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.contreco-support-card h3 {
    color: #333;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contreco-support-card p {
    margin-bottom: 20px;
    color: #555;
}

.contreco-buy-coffee-sidebar {
    display: block;
    text-align: center;
    background: #ff813f;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contreco-buy-coffee-sidebar:hover {
    background: #ff6b21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 129, 63, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contreco-settings-container {
        grid-template-columns: 1fr;
    }
    
    .contreco-header-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contreco-header-actions {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contreco-design-grid {
        grid-template-columns: 1fr;
    }
    
    .contreco-header-content h1 {
        font-size: 2em;
    }
    
    .contreco-settings-card,
    .contreco-sidebar-card {
        padding: 20px;
    }
}

/* Form table improvements */
.contreco-plugin-page .form-table th {
    width: 250px;
    padding: 20px 10px 20px 0;
    font-weight: 600;
    color: #333;
}

.contreco-plugin-page .form-table td {
    padding: 15px 10px;
}

.contreco-plugin-page .description {
    font-style: italic;
    color: #666;
    margin-top: 8px;
    display: block;
}

/* Top-level menu specific styles */
#adminmenu .toplevel_page_contreco-content-reveal-countdown .wp-menu-image img {
    display: none;
}

#adminmenu .toplevel_page_contreco-content-reveal-countdown .wp-menu-image::before {
    content: "\f469" !important; /* Override with clock icon */
    font-family: 'dashicons' !important;
    font-size: 20px;
    line-height: 1;
}

