/*
Used for all WP pages
*/
#toast-container {
    margin-top: 27px !important;
}

li a[href*="page=wp-cache-on"]::before {
    content: none !important; /* Remove the default icon */
}

li a[href*="page=wp-cache-on"] .dashicons {
    display: inline-block; /* Ensure your Dashicon is visible */
    margin-right: 5px; /* Optional: Add spacing */
}

/* Deactivation Modal Styles */
.wco-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.wco-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.wco-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wco-modal-icon {
    width: 40px;
    height: 40px;
    background-color: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wco-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.wco-modal-body {
    padding: 20px 24px 24px 24px;
}

.wco-modal-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.wco-feedback-options {
    margin-bottom: 20px;
}

.wco-radio-option {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.wco-radio-option:hover {
    background-color: #f9fafb;
}

.wco-radio-option input[type="radio"] {
    margin: 0 12px 0 0;
    transform: scale(1.1);
    accent-color: #3b82f6;
}

.wco-radio-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.wco-other-reason {
    margin-top: 16px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.wco-other-reason textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.wco-other-reason textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wco-modal-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 20px 0;
}

.wco-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wco-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.wco-btn-primary {
    background-color: #374151;
    color: #ffffff;
}

.wco-btn-primary:hover {
    background-color: #1f2937;
}

.wco-btn-cancel {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.wco-btn-cancel:hover {
    background-color: #f9fafb;
    color: #374151;
}

.wco-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.wco-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: wco-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes wco-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wco-loading-overlay p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Prevent body scroll when modal is open */
body.wco-modal-open {
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 640px) {
    .wco-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .wco-modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .wco-modal-body {
        padding: 16px 20px 20px 20px;
    }
    
    .wco-modal-title {
        font-size: 18px;
    }
}