/* Local Poppins Font */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700.woff2') format('woff2');
}

:root {
    --ofwm-primary: #6167F8;
    --ofwm-primary-rgb: 97, 103, 248;
    --ofwm-secondary: #9965FF;
    --ofwm-accent: #00D2FF;
    --ofwm-bg: #f8fafc;
    --ofwm-card-bg: #ffffff;
    --ofwm-text-main: #1e293b;
    --ofwm-text-muted: #64748b;
    --ofwm-border: #e2e8f0;
    --ofwm-success: #10b981;
    --ofwm-pending: #f59e0b;
    --ofwm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ofwm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ofwm-settings-wrap {
    font-family: 'Poppins', sans-serif;
    color: var(--ofwm-text-main);
    max-width: 1200px;
    margin: 20px auto 20px 0;
    padding-right: 20px;
}

/* Header Section */
.ofwm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--ofwm-primary) 0%, var(--ofwm-secondary) 100%);
    padding: 30px 40px;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: var(--ofwm-shadow-lg);
    position: relative;
    overflow: hidden;
}

.ofwm-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.ofwm-header-content h1 {
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.ofwm-tagline {
    margin: 5px 0 0 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.ofwm-header-badge span {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dashboard Grid */
.ofwm-dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

@media (max-width: 1100px) {
    .ofwm-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.ofwm-card {
    background: var(--ofwm-card-bg);
    border-radius: 16px;
    box-shadow: var(--ofwm-shadow);
    border: 1px solid var(--ofwm-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ofwm-card:hover {
    box-shadow: var(--ofwm-shadow-lg);
}

.ofwm-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--ofwm-border);
    background: #fafafa;
}

.ofwm-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ofwm-text-main);
}

.ofwm-card-body {
    padding: 25px;
}

/* Stats Circle */
.ofwm-stats-circle {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 150px;
    max-height: 150px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--ofwm-primary);
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.percentage {
    fill: var(--ofwm-text-main);
    font-family: inherit;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 700;
}

/* Stats List */
.ofwm-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ofwm-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.ofwm-stat-label {
    font-size: 14px;
    color: var(--ofwm-text-muted);
    font-weight: 500;
}

.ofwm-stat-value {
    font-size: 16px;
    font-weight: 700;
}

.ofwm-stat-value.converted {
    color: var(--ofwm-success);
}

.ofwm-stat-value.pending {
    color: var(--ofwm-pending);
}

/* Settings Form Styling */
.ofwm-settings-card .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.ofwm-settings-card .form-table td {
    padding: 15px 0;
}

.ofwm-settings-card .form-table label {
    font-weight: 600;
    font-size: 15px;
    color: var(--ofwm-text-main);
}

.ofwm-settings-card input[type="text"],
.ofwm-settings-card input[type="number"] {
    border: 2px solid var(--ofwm-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-shadow: none;
}

.ofwm-settings-card input[type="text"]:focus,
.ofwm-settings-card input[type="number"]:focus {
    border-color: var(--ofwm-primary);
    box-shadow: 0 0 0 3px rgba(var(--ofwm-primary-rgb), 0.1);
}

.ofwm-settings-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ofwm-border);
    border-radius: 4px;
    margin-right: 10px;
}

.ofwm-settings-card input[type="checkbox"]:checked {
    background: var(--ofwm-border);
    border-color: var(--ofwm-border);
}

.ofwm-settings-card .description {
    font-style: normal;
    color: var(--ofwm-text-muted);
    font-size: 13px;
    margin-top: 5px;
}

/* Submit Button */
.ofwm-submit-btn {
    background: var(--ofwm-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    height: auto !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
    box-shadow: 0 4px 6px rgba(var(--ofwm-primary-rgb), 0.2) !important;
}

.ofwm-submit-btn:hover {
    background: var(--ofwm-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(var(--ofwm-primary-rgb), 0.3) !important;
}

.ofwm-submit-btn:active {
    transform: translateY(0);
}

/* Section Titles */
.ofwm-settings-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ofwm-primary);
    display: inline-block;
}