/*
 * Bangla Font CDN Admin Styles
 * Version: 1.0
 * License: GPLv2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 */

.bangla-font-cdn-wrap {
    max-width: 800px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.bangla-font-cdn-wrap h1 {
    font-size: 2em;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 20px;
}

.bangla-font-cdn-wrap .notice-warning {
    background: #fff3cd;
    border-left-color: #ffca2c;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bangla-font-cdn-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bangla-font-cdn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.bangla-font-cdn-card h2,
.bangla-font-cdn-card h3 {
    font-size: 1.2em;
    font-weight: 500;
    color: #1d2327;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
}

.bangla-font-cdn-card h2::before,
.bangla-font-cdn-card h3::before {
    font-family: 'dashicons';
    margin-right: 8px;
    color: #0073aa;
}

.bangla-font-cdn-card:nth-child(1) h3::before {
    content: '\f324'; /* Font icon */
}

.bangla-font-cdn-card:nth-child(2) h3::before {
    content: '\f111'; /* Fallback icon */
}

.bangla-font-cdn-card:nth-child(3) h3::before {
    content: '\f540'; /* Typography icon */
}

.bangla-font-cdn-card h2::before {
    content: '\f534'; /* Info icon for disclaimer */
}

.bangla-font-cdn-card select,
.bangla-font-cdn-card input[type="text"],
.bangla-font-cdn-card input[type="number"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.bangla-font-cdn-card select:focus,
.bangla-font-cdn-card input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.bangla-font-cdn-card .description {
    color: #555d66;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.bangla-font-cdn-card input[type="checkbox"] {
    margin-right: 8px;
}

#font-preview {
    background: linear-gradient(135deg, #f9f9f9, #e9ecef);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #ccd0d4;
    animation: fadeIn 0.3s ease;
}

#font-preview h3 {
    font-size: 1.1em;
    margin: 0 0 10px;
}

#font-preview p {
    margin: 0;
}

.bangla-font-cdn-card p {
    margin: 10px 0;
}

.bangla-font-cdn-card label {
    font-weight: 500;
    color: #1d2327;
}

.button-primary {
    background: #0073aa;
    border-color: #006799;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
}

.button-primary:hover {
    background: #006799;
}

.button-secondary {
    background: #d63638;
    border-color: #c32d2f;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
    margin-left: 10px;
}

.button-secondary:hover {
    background: #c32d2f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .bangla-font-cdn-card {
        padding: 15px;
    }
    .bangla-font-cdn-card select,
    .bangla-font-cdn-card input {
        max-width: 100%;
    }
}