/* ===================== RESET WORDPRESS/THEME CONFLICTS ===================== */
.pro-cagr-calc-container { display: block; text-align: left; line-height: 1.5; color: #333; }
.pro-cagr-calc-container * { box-sizing: border-box !important; font-family: 'Poppins', Arial, sans-serif !important; font-weight: normal !important; }
.pro-cagr-calc-container p,.pro-cagr-calc-container span,.pro-cagr-calc-container div,.pro-cagr-calc-container li,.pro-cagr-calc-container label,.pro-cagr-calc-container input,.pro-cagr-calc-container select,.pro-cagr-calc-container textarea { font-weight: normal !important; }
.pro-cagr-calc-container strong,.pro-cagr-calc-container b { font-weight: 700 !important; }
.pro-cagr-calc-container h1,.pro-cagr-calc-container h2,.pro-cagr-calc-container h3,.pro-cagr-calc-container h4,.pro-cagr-calc-container h5,.pro-cagr-calc-container h6 { font-weight: 600 !important; }
.pro-cagr-calc-container input:not([type="checkbox"]),.pro-cagr-calc-container select,.pro-cagr-calc-container button,.pro-cagr-calc-container textarea { -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important; background-image: none !important; border-radius: 12px !important; }
/* Checkbox styling: Ensure visibility by using custom-like appearance */
.pro-cagr-calc-container input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 1px solid #1976d2 !important;
    accent-color: #1976d2 !important;
}
.pro-cagr-calc-container button { cursor: pointer !important; text-decoration: none !important; }

/* ===================== DARK MODE SUPPORT ===================== */
.pro-cagr-calc-container.dark-mode { --bg: #1a1a1a; --text: #f0f0f0; --card-bg: #2d2d2d; --input-bg: #3d3d3d; --border: #4d4d4d; --accent: #448aff; }
.pro-cagr-calc-container.dark-mode { background: var(--bg); color: var(--text); }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-card, 
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-card-header,
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-input-section,
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-result-container { background: var(--card-bg) !important; color: var(--text) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-input-group input,
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-input-group select { background: var(--input-bg) !important; color: #fff !important; border-color: var(--border) !important; }
.pro-cagr-calc-container.dark-mode h2, .pro-cagr-calc-container.dark-mode h3, .pro-cagr-calc-container.dark-mode h4 { color: var(--accent) !important; }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-result-card:not(.pro-cagr-calc-primary) { background: #3d3d3d; color: #eee; }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-comparison-table th { background: #444; color: #fff; }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-comparison-table td { color: #ccc; border-bottom-color: #555; }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-comparison-table tr:nth-child(even) td { background: #333; }

/* ===================== MAIN CONTAINER ===================== */
.pro-cagr-calc-container {width: 100% !important;margin: 0 auto !important;padding: 0px !important;font-family: 'Poppins', Arial, sans-serif;color: #222;box-sizing: border-box; transition: background 0.3s, color 0.3s;}
.pro-cagr-calc-container *,.pro-cagr-calc-container *::before,.pro-cagr-calc-container *::after {box-sizing: border-box;}

/* ===================== HEADER ===================== */
.pro-cagr-calc-card-header {text-align: center;margin-bottom: 10px;padding: 15px;border-radius: 16px;background: #fff;box-shadow: 0 8px 20px rgba(0,0,0,0.1);transition: transform .3s; position: relative;}
.pro-cagr-calc-card-header:hover {transform: translateY(-2px);}
.pro-cagr-calc-card-header h2 {font-size: 24px;color: #333;font-weight: 600 !important;margin-bottom: 8px;margin-top: 0;}
.pro-cagr-calc-card-header p {font-size: 14px;color: #555;margin: 0 auto;}

/* DARK MODE TOGGLE */
.pro-cagr-calc-theme-toggle { position: absolute; top: 15px; right: 15px; background: #f0f0f0; border: none; padding: 8px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.pro-cagr-calc-theme-toggle:hover { background: #e0e0e0; transform: rotate(15deg); }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-theme-toggle { background: #444; color: #ffeb3b; }

/* ===================== CARD ===================== */
.pro-cagr-calc-card {background: #fff;padding: 3px;border-radius: 16px;box-shadow: 0 6px 18px rgba(0,0,0,0.08);}

/* ===================== INFO BOX ===================== */
.pro-cagr-calc-info-box {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);color: #fff;padding: 16px;border-radius: 12px;margin-bottom: 20px;box-shadow: 0 4px 12px rgba(0,0,0,0.15);}
.pro-cagr-calc-info-box p {margin: 0 0 10px 0;font-size: 14px;line-height: 1.6;font-weight: normal !important;}
.pro-cagr-calc-info-box p:last-child {margin-bottom: 0;}
.pro-cagr-calc-info-box strong {font-weight: 700 !important;}

/* ===================== WARNING BOX ===================== */
.pro-cagr-calc-warning-box {background: #fff3cd;border-left: 4px solid #ffc107;padding: 12px 16px;border-radius: 8px;margin: 16px 0;}
.pro-cagr-calc-warning-box p {margin: 0;font-size: 13px;color: #856404;line-height: 1.5;font-weight: normal !important;}
.pro-cagr-calc-warning-box strong {color: #d39e00;font-weight: 700 !important;}

/* ===================== INPUT SECTION ===================== */
.pro-cagr-calc-input-section {background: #fff;padding: 20px;border-radius: 16px;box-shadow: 0 8px 20px rgba(0,0,0,0.08);margin: 0;}
.pro-cagr-calc-section-heading {margin-bottom: 16px;}
.pro-cagr-calc-section-heading h4 {margin: 0 0 8px 0;font-weight: 600 !important;font-size: 18px;color: #1976d2;border-bottom: 2px solid #1976d2;padding-bottom: 8px;}
.pro-cagr-calc-input-row {display: flex;gap: 12px;flex-wrap: wrap;margin-bottom: 16px;}
.pro-cagr-calc-input-group {flex: 1;min-width: 200px;}
.pro-cagr-calc-input-group label {display: block;margin-bottom: 6px;font-weight: 600 !important;font-size: 14px;color: #1976d2;}
.pro-cagr-calc-input-group input,.pro-cagr-calc-input-group select {width: 100%;padding: 12px 14px;border: 1px solid #90caf9;border-radius: 12px;font-size: 15px;transition: .3s;background: #fff;font-weight: normal !important;}
.pro-cagr-calc-input-group input:focus,.pro-cagr-calc-input-group select:focus {outline: none;border-color: #1976d2;box-shadow: 0 0 0 3px rgba(25,118,210,0.15);}
.pro-cagr-calc-input-group small {display: block;margin-top: 4px;font-size: 12px;color: #888;}

/* ===================== CHECKBOX ===================== */
.pro-cagr-calc-checkbox-options {display: flex;flex-direction: column;gap: 8px;}
.pro-cagr-calc-checkbox-option {display: flex;align-items: center;gap: 12px;padding: 14px;border-radius: 12px;background: #ffffff;border: 1px solid #d1d9e6;transition: all 0.2s;cursor: pointer;}
.pro-cagr-calc-checkbox-option:hover {background-color: #f0f7ff;border-color: #1976d2;}
.pro-cagr-calc-checkbox-option input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    accent-color: #1976d2 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
.pro-cagr-calc-checkbox-option label {cursor: pointer;font-size: 15px;margin: 0;font-weight: 500 !important;color: #333;user-select: none;flex: 1;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-checkbox-option { background: #2d2d2d; border-color: #444; }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-checkbox-option label { color: #eee; }
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-checkbox-option:hover { background: #3d3d3d; border-color: #1976d2; }

/* ===================== ADVANCED OPTIONS ===================== */
.pro-cagr-calc-advanced-options {margin-top: 20px;padding-top: 20px;border-top: 2px dashed #e0e0e0;}
.pro-cagr-calc-advanced-options h4 {margin: 0 0 16px 0;font-size: 16px;color: #1976d2;font-weight: 600 !important;}

/* ===================== BUTTONS ===================== */
.pro-cagr-calc-btn-group {display: flex;gap: 12px;margin-top: 20px;}
.pro-cagr-calc-calculate-btn,.pro-cagr-calc-reset-btn {flex: 1;padding: 14px;border: none;border-radius: 12px;font-weight: 700 !important;font-size: 16px;cursor: pointer;transition: .2s;}
.pro-cagr-calc-calculate-btn {background: #1976d2;color: #fff;}
.pro-cagr-calc-calculate-btn:hover {background: #125ea8;transform: translateY(-2px);}
.pro-cagr-calc-reset-btn {background: #f44336;color: #fff;}
.pro-cagr-calc-reset-btn:hover {background: #c62828;transform: translateY(-2px);}

/* ===================== ERROR ===================== */
.pro-cagr-calc-error-box {display: none;background: #ffebee;border-left: 4px solid #f44336;padding: 12px 16px;border-radius: 8px;margin-top: 16px;font-size: 14px;color: #c62828;font-weight: 500 !important;}

/* ===================== RESULT CONTAINER ===================== */
.pro-cagr-calc-result-container {margin-top: 30px;background: #fff;padding: 24px;border-radius: 16px;box-shadow: 0 8px 20px rgba(0,0,0,0.1);}
.pro-cagr-calc-result-container.pro-cagr-calc-hidden {display: none !important;}
.pro-cagr-calc-result-container h3 {font-size: 22px;color: #1976d2;margin: 0 0 20px 0;text-align: center;font-weight: 700 !important;}

/* ===================== RESULTS GRID ===================== */
.pro-cagr-calc-results-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));gap: 16px;margin-bottom: 24px;}
.pro-cagr-calc-result-card {background: #f5f5f5;padding: 20px;border-radius: 12px;text-align: center;transition: all 0.3s;box-shadow: 0 2px 8px rgba(0,0,0,0.08);}
.pro-cagr-calc-result-card.pro-cagr-calc-primary {background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);color: #fff;transform: scale(1.05);}
.pro-cagr-calc-result-card:hover {transform: translateY(-4px);box-shadow: 0 6px 16px rgba(0,0,0,0.15);}
.pro-cagr-calc-result-card.pro-cagr-calc-primary:hover {transform: scale(1.05) translateY(-4px);}
.pro-cagr-calc-result-title {font-size: 12px;font-weight: 600 !important;margin-bottom: 8px;opacity: 0.9;text-transform: uppercase;letter-spacing: 0.5px;}
.pro-cagr-calc-result-value {font-size: 28px;font-weight: 700 !important;margin-bottom: 4px;line-height: 1.2;}
.pro-cagr-calc-result-unit {font-size: 13px;font-weight: 500 !important;opacity: 0.8;}

/* GROWTH CHART */
.pro-cagr-calc-breakdown-section#pro-cagr-calc-chart-wrap {background:#fff; border:1px solid #e0e0e0;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-breakdown-section#pro-cagr-calc-chart-wrap { background: #2d2d2d; border-color: #444; }

/* ===================== BREAKDOWN SECTION ===================== */
.pro-cagr-calc-breakdown-section {background: #e3f2fd;padding: 20px;border-radius: 12px;margin-bottom: 20px;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-breakdown-section { background: #263238; }
.pro-cagr-calc-breakdown-section h4 {margin: 0 0 12px 0;font-size: 16px;color: #0d47a1;font-weight: 600 !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-breakdown-section h4 { color: #90caf9; }
.pro-cagr-calc-breakdown-section p {margin: 0 0 8px 0;font-size: 14px;color: #1565c0;font-weight: normal !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-breakdown-section p { color: #e3f2fd; }
.pro-cagr-calc-breakdown-section ul {margin: 0;padding-left: 0;list-style: none;}
.pro-cagr-calc-breakdown-section li {margin-bottom: 8px;font-size: 14px;color: #0d47a1;position: relative;padding-left: 28px;font-weight: normal !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-breakdown-section li { color: #bbdefb; }
.pro-cagr-calc-breakdown-section li:before {content: "💰";position: absolute;left: 0;}

/* ===================== CALCULATION STEPS ===================== */
.pro-cagr-calc-calculation-steps {background: #f3e5f5;padding: 20px;border-radius: 12px;margin-bottom: 20px;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-calculation-steps { background: #4a148c22; }
.pro-cagr-calc-calculation-steps h4 {margin: 0 0 12px 0;font-size: 16px;color: #4a148c;font-weight: 600 !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-calculation-steps h4 { color: #ce93d8; }
.pro-cagr-calc-steps-content {font-size: 13px;color: #6a1b9a;line-height: 1.9;font-weight: normal !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-steps-content { color: #e1bee7; }
.pro-cagr-calc-steps-content strong {color: #4a148c;font-weight: 700 !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-steps-content strong { color: #ce93d8; }
.pro-cagr-calc-steps-content code {background: #e1bee7;padding: 2px 6px;border-radius: 4px;font-family: monospace !important;font-size: 13px;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-steps-content code { background: #4a148c; color: #fff; }

/* ===================== COMPARISON TABLE ===================== */
.pro-cagr-calc-comparison-table {background: #fff8e1;padding: 20px;border-radius: 12px;margin-bottom: 20px;}
.pro-cagr-calc-comparison-table h4 {margin: 0 0 16px 0;font-size: 16px;color: #f57c00;font-weight: 600 !important;}
.pro-cagr-calc-comparison-table table {width: 100%;border-collapse: collapse;}
.pro-cagr-calc-comparison-table th,.pro-cagr-calc-comparison-table td {padding: 10px 12px;text-align: left;border-bottom: 1px solid #ffe082;font-size: 13px;}
.pro-cagr-calc-comparison-table th {background: #ffecb3;color: #e65100;font-weight: 600 !important;}
.pro-cagr-calc-comparison-table td {color: #5d4037;font-weight: normal !important;}
.pro-cagr-calc-comparison-table tr:nth-child(even) td {background: #fffde7;}
.pro-cagr-calc-comparison-table tr:hover td {background: #fff9c4;}

/* ===================== INTERPRETATION ===================== */
.pro-cagr-calc-interpretation {background: #fff3e0;padding: 20px;border-radius: 12px;margin-bottom: 20px;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-interpretation { background: #e6510011; }
.pro-cagr-calc-interpretation h4 {margin: 0 0 12px 0;font-size: 16px;color: #e65100;font-weight: 600 !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-interpretation h4 { color: #ffb74d; }
.pro-cagr-calc-interpretation p {margin: 8px 0;font-size: 14px;color: #bf360c;line-height: 1.8;font-weight: normal !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-interpretation p { color: #ffe0b2; }

/* ===================== BENCHMARK ===================== */
.pro-cagr-calc-benchmark-section {background: #e8f5e9;padding: 20px;border-radius: 12px;margin-bottom: 20px;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-benchmark-section { background: #1b5e2011; }
.pro-cagr-calc-benchmark-section h4 {margin: 0 0 12px 0;font-size: 16px;color: #2e7d32;font-weight: 600 !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-benchmark-section h4 { color: #81c784; }
.pro-cagr-calc-benchmark-section p {margin: 8px 0;font-size: 14px;color: #1b5e20;line-height: 1.8;font-weight: normal !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-benchmark-section p { color: #c8e6c9; }

/* ===================== PRINT VIEW ===================== */
@media print {
  .pro-cagr-calc-theme-toggle, .pro-cagr-calc-btn-group, .pro-cagr-calc-reset-bottom, .pro-cagr-calc-copy-btn, #pro-cagr-calc-copy-results-btn { display: none !important; }
  .pro-cagr-calc-container { background: #fff !important; color: #000 !important; }
  .pro-cagr-calc-card, .pro-cagr-calc-result-container { box-shadow: none !important; border: 1px solid #ddd !important; }
  .pro-cagr-calc-result-card.pro-cagr-calc-primary { background: #eee !important; color: #000 !important; border: 1px solid #000; }
}

/* ===================== RESPONSIVE ===================== */
@media(max-width: 768px) {
  .pro-cagr-calc-container {padding: 0 !important;}
  .pro-cagr-calc-input-row {flex-direction: column;gap: 16px;}
  .pro-cagr-calc-input-group {min-width: 100%;}
  .pro-cagr-calc-input-group input,.pro-cagr-calc-input-group select {font-size: 16px !important;padding: 14px 16px !important;height: auto !important;}
  .pro-cagr-calc-results-grid {grid-template-columns: 1fr;gap: 12px;}
  .pro-cagr-calc-btn-group {flex-direction: column;gap: 16px;}
  .pro-cagr-calc-calculate-btn,.pro-cagr-calc-reset-btn {padding: 16px;font-size: 18px;}
  .pro-cagr-calc-card-header h2 {font-size: 20px !important;}
  .pro-cagr-calc-result-value {font-size: 24px !important;}
  .pro-cagr-calc-comparison-table {overflow-x: auto;-webkit-overflow-scrolling: touch;}
  .pro-cagr-calc-checkbox-option {padding: 14px;}
  .pro-cagr-calc-result-card.pro-cagr-calc-primary {transform: scale(1);}
}

/* ===================== EDUCATIONAL INFO ===================== */
.pro-cagr-calc-educational-info {background: #e8eaf6;padding: 20px;border-radius: 12px;margin-bottom: 20px;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-educational-info { background: #1a237e22; }
.pro-cagr-calc-educational-info h4 {margin: 0 0 12px 0;font-size: 16px;color: #283593;font-weight: 600 !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-educational-info h4 { color: #9fa8da; }
.pro-cagr-calc-educational-info p {margin: 8px 0;font-size: 14px;color: #1a237e;line-height: 1.8;font-weight: normal !important;}
.pro-cagr-calc-container.dark-mode .pro-cagr-calc-educational-info p { color: #c5cae9; }