/* ===================== RESET WORDPRESS/THEME CONFLICTS ===================== */
.aoc2026calc-container {
    all: initial;
    display: block;
}

/* WordPress Theme Compatibility - Reset and Isolation */
.aoc2026calc-container * {
    box-sizing: border-box !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: normal !important;
}

.aoc2026calc-container p,
.aoc2026calc-container span,
.aoc2026calc-container div,
.aoc2026calc-container li,
.aoc2026calc-container label,
.aoc2026calc-container input,
.aoc2026calc-container select,
.aoc2026calc-container textarea {
    font-weight: normal !important;
}

.aoc2026calc-container strong,
.aoc2026calc-container b {
    font-weight: 700 !important;
}

.aoc2026calc-container h1,
.aoc2026calc-container h2,
.aoc2026calc-container h3,
.aoc2026calc-container h4,
.aoc2026calc-container h5,
.aoc2026calc-container h6 {
    font-weight: 600 !important;
}

.aoc2026calc-container input, 
.aoc2026calc-container select, 
.aoc2026calc-container button, 
.aoc2026calc-container textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    border-radius: 12px !important;
}

.aoc2026calc-container button {
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ===================== MAIN CONTAINER ===================== */
.aoc2026calc-container {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0px !important;
    font-family: 'Poppins', Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
}

.aoc2026calc-container *, 
.aoc2026calc-container *::before, 
.aoc2026calc-container *::after { 
    box-sizing: border-box; 
}

/* ===================== HEADER ===================== */
.aoc2026calc-card-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform .3s;
}

.aoc2026calc-card-header:hover {
    transform: translateY(-2px);
}

.aoc2026calc-card-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.aoc2026calc-card-header p {
    font-size: 14px;
    color: #555;
    margin: 0 auto;
}

/* ===================== CARD ===================== */
.aoc2026calc-card {
    background: #fff;
    padding: 3px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===================== INFO BOX ===================== */
.aoc2026calc-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);
}

.aoc2026calc-info-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: normal !important;
}

.aoc2026calc-info-box p:last-child {
    margin-bottom: 0;
}

.aoc2026calc-info-box strong {
    font-weight: 700 !important;
}

/* ===================== INPUT SECTION ===================== */
.aoc2026calc-input-section {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 0;
}

.aoc2026calc-section-heading {
    margin-bottom: 16px;
}

.aoc2026calc-section-heading h4 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 18px;
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 8px;
}

.aoc2026calc-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aoc2026calc-input-group {
    flex: 1;
    min-width: 200px;
}

.aoc2026calc-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600 !important;
    font-size: 14px;
    color: #1976d2;
}

.aoc2026calc-input-group input, 
.aoc2026calc-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;
}

.aoc2026calc-input-group input:focus, 
.aoc2026calc-input-group select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.15);
}

.aoc2026calc-unit-input {
    display: flex;
    gap: 8px;
}

.aoc2026calc-unit-input input {
    flex: 2;
}

.aoc2026calc-unit-input select {
    flex: 1;
}

/* ===================== BUTTONS ===================== */
.aoc2026calc-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.aoc2026calc-calculate-btn,
.aoc2026calc-reset-btn,
.aoc2026calc-copy-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700 !important;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.aoc2026calc-calculate-btn {
    background: #1976d2;
    color: #fff;
}

.aoc2026calc-calculate-btn:hover {
    background: #125ea8;
    transform: translateY(-2px);
}

.aoc2026calc-calculate-btn:disabled {
    background: #90caf9;
    cursor: not-allowed;
    transform: none;
}

.aoc2026calc-reset-btn {
    background: #f44336;
    color: #fff;
}

.aoc2026calc-reset-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
}

.aoc2026calc-copy-btn {
    background: #4caf50;
    color: #fff;
}

.aoc2026calc-copy-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

/* ===================== RESULT CONTAINER ===================== */
.aoc2026calc-result-container {
    margin-top: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.aoc2026calc-result-container.aoc2026calc-hidden {
    display: none;
}

.aoc2026calc-result-container h3 {
    font-size: 22px;
    color: #1976d2;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
}

/* ===================== CIRCLE DIAGRAM ===================== */
.aoc2026calc-circle-diagram {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.aoc2026calc-circle-diagram h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #0d47a1;
    font-weight: 600;
}

.aoc2026calc-circle-svg {
    max-width: 500px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.aoc2026calc-diagram-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.aoc2026calc-diagram-label-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    text-align: left;
}

.aoc2026calc-diagram-label-item.radius {
    border-left-color: #f44336;
}

.aoc2026calc-diagram-label-item.diameter {
    border-left-color: #4caf50;
}

.aoc2026calc-diagram-label-item.circumference {
    border-left-color: #ff9800;
}

.aoc2026calc-diagram-label-item.area {
    border-left-color: #1976d2;
}

.aoc2026calc-diagram-label-item strong {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600 !important;
}

.aoc2026calc-diagram-label-item span {
    display: block;
    font-size: 16px;
    color: #0d47a1;
    font-weight: 700 !important;
}

/* SVG Animations */
@keyframes aoc2026-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes aoc2026-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.aoc2026calc-animated-circle {
    animation: aoc2026-pulse 2s ease-in-out infinite;
}

.aoc2026calc-animated-circumference {
    stroke-dasharray: 628;
    stroke-dashoffset: 628;
    animation: aoc2026-draw-circle 2s ease-out forwards;
}

@keyframes aoc2026-draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes aoc2026-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===================== RESULTS GRID ===================== */
.aoc2026calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.aoc2026calc-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);
}

.aoc2026calc-result-card.aoc2026calc-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    transform: scale(1.05);
}

.aoc2026calc-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.aoc2026calc-result-title {
    font-size: 13px;
    font-weight: 600 !important;
    margin-bottom: 8px;
    opacity: 0.9;
}

.aoc2026calc-result-value {
    font-size: 32px;
    font-weight: 700 !important;
    margin-bottom: 4px;
}

.aoc2026calc-result-unit {
    font-size: 14px;
    font-weight: 500 !important;
    opacity: 0.8;
}

/* ===================== CALCULATION STEPS ===================== */
.aoc2026calc-calculation-steps {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.aoc2026calc-calculation-steps h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #4a148c;
    font-weight: 600;
}

.aoc2026calc-steps-content {
    font-size: 13px;
    color: #6a1b9a;
    line-height: 1.8;
    font-weight: normal !important;
}

.aoc2026calc-steps-content p {
    margin: 8px 0;
    font-weight: normal !important;
}

.aoc2026calc-steps-content strong {
    color: #4a148c;
    font-weight: 700 !important;
}

.aoc2026calc-steps-content em {
    font-style: italic;
    font-weight: normal !important;
}

/* ===================== EDUCATIONAL INFO ===================== */
.aoc2026calc-educational-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.aoc2026calc-educational-info h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2e7d32;
    font-weight: 600;
}

.aoc2026calc-educational-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #1b5e20;
    line-height: 1.8;
    font-weight: normal !important;
}

.aoc2026calc-educational-info strong {
    font-weight: 700 !important;
}

.aoc2026calc-educational-info ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style: none;
}

.aoc2026calc-educational-info li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #1b5e20;
    position: relative;
    padding-left: 24px;
    font-weight: normal !important;
}

.aoc2026calc-educational-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700 !important;
}

/* ===================== FORMULA CARDS ===================== */
.aoc2026calc-formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.aoc2026calc-formula-card {
    background: white;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.aoc2026calc-formula-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.aoc2026calc-formula-card.area-formula {
    border-left-color: #1976d2;
}

.aoc2026calc-formula-card.circumference-formula {
    border-left-color: #ff9800;
}

.aoc2026calc-formula-card.diameter-formula {
    border-left-color: #4caf50;
}

.aoc2026calc-formula-card h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600 !important;
    color: #333;
}

.aoc2026calc-formula-card .formula {
    font-size: 18px;
    font-weight: 700 !important;
    color: #1976d2;
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    margin: 8px 0;
}

.aoc2026calc-formula-card .description {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    font-weight: normal !important;
}

/* ===================== COMPARISON TABLE ===================== */
.aoc2026calc-comparison-table {
    background: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.aoc2026calc-comparison-table h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #f57c00;
    font-weight: 600;
}

.aoc2026calc-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.aoc2026calc-comparison-table th,
.aoc2026calc-comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ffe082;
    font-size: 13px;
}

.aoc2026calc-comparison-table th {
    background: #ffecb3;
    color: #e65100;
    font-weight: 600 !important;
}

.aoc2026calc-comparison-table td {
    color: #e65100;
    font-weight: normal !important;
}

.aoc2026calc-comparison-table tr:hover {
    background: rgba(255, 224, 130, 0.3);
}

.aoc2026calc-comparison-table td:first-child {
    font-weight: 600 !important;
}

/* ===================== SIZE COMPARISON ===================== */
.aoc2026calc-size-comparison {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.aoc2026calc-size-comparison h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #c2185b;
    font-weight: 600;
}

.aoc2026calc-comparison-circles {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.aoc2026calc-comparison-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.aoc2026calc-comparison-item svg {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.aoc2026calc-comparison-item p {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #880e4f;
    font-weight: 600 !important;
}

/* ===================== HIDDEN ===================== */
.aoc2026calc-hidden {
    display: none !important;
}

/* ===================== RESPONSIVE ===================== */
@media(max-width: 768px) {
    .aoc2026calc-container {
        padding: 0 !important;
    }
    
    .aoc2026calc-input-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .aoc2026calc-input-group {
        min-width: 100%;
    }
    
    .aoc2026calc-input-group input, 
    .aoc2026calc-input-group select {
        font-size: 16px !important;
        padding: 14px 16px;
        height: auto !important;
    }
    
    .aoc2026calc-unit-input {
        display: flex;
        gap: 8px;
    }
    
    .aoc2026calc-unit-input input {
        width: 65% !important;
        flex: 2;
    }
    
    .aoc2026calc-unit-input select {
        width: 35% !important;
        flex: 1;
    }
    
    .aoc2026calc-results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .aoc2026calc-btn-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .aoc2026calc-calculate-btn,
    .aoc2026calc-reset-btn,
    .aoc2026calc-copy-btn {
        padding: 16px;
        font-size: 18px;
    }
    
    .aoc2026calc-card-header h2 {
        font-size: 22px;
    }
    
    .aoc2026calc-result-value {
        font-size: 28px;
    }
    
    .aoc2026calc-comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    .aoc2026calc-comparison-table table {
        min-width: 500px;
    }
    
    .aoc2026calc-circle-svg {
        max-width: 100%;
    }
    
    .aoc2026calc-diagram-labels {
        grid-template-columns: 1fr;
    }
    
    .aoc2026calc-formula-grid {
        grid-template-columns: 1fr;
    }
    
    .aoc2026calc-comparison-circles {
        flex-direction: column;
    }
    
    .aoc2026calc-comparison-item {
        min-width: 100%;
    }
}