/**
 * FlyingPress Cloudflare Admin Styles
 * 
 * @package RKFT_FlyingPress_Cloudflare
 */

.rkft-fp-cf-settings .form-table th {
    width: 200px;
}

.rkft-fp-cf-settings .form-table td {
    padding: 15px 10px;
}

.rkft-fp-cf-settings .description {
    margin-top: 5px;
    color: #666;
}

#test-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 3px;
}

#test-result .success {
    color: #46b450;
    background-color: #f7fcf7;
    border: 1px solid #46b450;
}

#test-result .error {
    color: #dc3232;
    background-color: #fef7f7;
    border: 1px solid #dc3232;
}

#test-result .description {
    color: #666;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

#toggle-token {
    margin-left: 5px;
    vertical-align: top;
}

.rkft-fp-cf-settings .notice {
    margin: 20px 0;
}

.rkft-fp-cf-settings hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.rkft-fp-cf-settings h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Loading animation for test button */
#test-connection:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success indicator for auto-save */
.field-saved {
    border-color: #46b450 !important;
    transition: border-color 0.3s ease;
}

/* Admin Bar Styles */
.rkft-fp-cf-menu .ab-icon {
    margin-right: 5px;
}

.rkft-fp-cf-menu .ab-icon:before {
    content: "\f325";
    font-family: dashicons;
    font-size: 16px;
    line-height: 1;
}

.rkft-fp-cf-purge-all,
.rkft-fp-cf-purge-current {
    cursor: pointer;
}

.rkft-fp-cf-purge-all.loading,
.rkft-fp-cf-purge-current.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification styles */
.rkft-fp-cf-notification {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
