/**
 * OfisteOfis Calculator Hub - Premium Google Soft Pastel Design System
 * Curated Slate Light Theme with harmonized Blue, Green, Red, and Orange accents.
 */

:root {
    --oo-bg-light: #f8fafc;
    --oo-bg-panel: #ffffff;
    --oo-bg-glass: #f1f5f9;
    --oo-border-glass: #e2e8f0;
    --oo-border-active: #1a73e8;
    --oo-primary: #1a73e8; /* Google Blue */
    --oo-primary-hover: #1557b0;
    --oo-primary-glow: rgba(26, 115, 232, 0.12);
    --oo-secondary: #137333; /* Google Green */
    --oo-text-main: #1e293b; /* Graphite */
    --oo-text-muted: #64748b; /* Slate */
    --oo-success: #137333;
    --oo-danger: #c5221f;
    --oo-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --oo-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Wrapper styling to isolate from WordPress theme conflicts */
.oo-calc-wrapper {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--oo-text-main);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

/* Glass background ambient glows */
.oo-calc-wrapper::before,
.oo-calc-wrapper::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

.oo-calc-wrapper::before {
    background: #1a73e8;
    top: -50px;
    right: -50px;
}

.oo-calc-wrapper::after {
    background: #137333;
    bottom: -50px;
    left: -50px;
}

.oo-calc-container {
    position: relative;
    z-index: 1;
}

/* Typography styling */
.oo-calc-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.oo-calc-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.oo-calc-header p {
    font-size: 1.05rem;
    color: var(--oo-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Tabs Navigation (Google Pastel Style) */
.oo-category-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.oo-category-navigation::-webkit-scrollbar {
    display: none;
}

.oo-cat-tab-btn {
    background: transparent;
    border: none;
    color: var(--oo-text-muted);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--oo-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.oo-cat-tab-btn svg {
    flex-shrink: 0;
}

.oo-cat-tab-btn:hover {
    color: #1a73e8;
    background: #f1f5f9;
}

.oo-cat-tab-btn.active {
    color: #1a73e8;
    background: #e8f0fe;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

/* Category panel base logic */
.oo-category-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.oo-category-panel.active {
    display: block;
}

/* Dashboard double-level layout */
.oo-dashboard-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar navigation styles */
.oo-subcalc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.oo-subcalc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: var(--oo-transition);
}

.oo-subcalc-card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.oo-subcalc-card.active {
    background: #e8f0fe;
    border-color: #d2e3fc;
}

.oo-subcalc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.oo-subcalc-icon.blue { background: #e8f0fe; }
.oo-subcalc-icon.green { background: #e6f4ea; }
.oo-subcalc-icon.orange { background: #fef7e0; }
.oo-subcalc-icon.yellow { background: #fef7e0; }

.oo-subcalc-info {
    overflow: hidden;
}

.oo-subcalc-info h4 {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.oo-subcalc-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--oo-text-muted);
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Workspace wrapper */
.oo-calc-workspace {
    background: transparent;
}

/* Tab contents (Calculators) */
.oo-calc-workspace .oo-calc-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.oo-calc-workspace .oo-calc-panel.active {
    display: block;
}

.oo-calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
}

/* Form Section Styling */
.oo-calc-form-sec {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.oo-calc-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: #1e293b;
    border-left: 4px solid var(--oo-primary);
    padding-left: 12px;
}

.oo-form-group {
    margin-bottom: 1.5rem;
}

.oo-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.oo-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.oo-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.oo-input-suffix {
    position: absolute;
    right: 14px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    pointer-events: none;
}

.oo-form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 12px 14px 12px 38px !important;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--oo-transition);
    height: 46px;
    box-sizing: border-box;
}

.oo-form-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
    background: #ffffff;
}

.oo-form-input.has-suffix {
    padding-right: 45px !important;
}

/* Custom Select styling - Explicit vertical alignment override */
.oo-form-select {
    width: 100%;
    height: 46px;
    line-height: 1.25;
    padding: 10px 36px 10px 14px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--oo-transition);
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.oo-form-select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* Custom Range Slider styling */
.oo-slider-group {
    margin-top: 0.75rem;
}

.oo-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    margin: 12px 0;
}

.oo-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
    transition: transform 0.1s ease;
}

.oo-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Switch Toggle Row */
.oo-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.oo-toggle-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
}

.oo-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.oo-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.oo-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .25s;
    border-radius: 22px;
}

.oo-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
}

input:checked + .oo-slider {
    background-color: #1a73e8;
}

input:checked + .oo-slider:before {
    transform: translateX(18px);
}

/* Results Panel Styling */
.oo-calc-results-sec {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.oo-result-main {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.75rem;
    border: 1px solid transparent;
}

.oo-result-main-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--oo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.oo-result-main-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
}

/* Custom Google Pastel theme modifications for outputs */
.oo-result-main.oo-accent-blue {
    background: #e8f0fe;
    border-color: #d2e3fc;
    color: #1a73e8;
}
.oo-result-main.oo-accent-blue .oo-result-main-value {
    color: #1a73e8;
    text-shadow: none;
}

.oo-result-main.oo-accent-green {
    background: #e6f4ea;
    border-color: #ceead6;
    color: #137333;
}
.oo-result-main.oo-accent-green .oo-result-main-value {
    color: #137333;
    text-shadow: none;
}

.oo-result-main.oo-accent-red {
    background: #fce8e6;
    border-color: #fad2cf;
    color: #c5221f;
}
.oo-result-main.oo-accent-red .oo-result-main-value {
    color: #c5221f;
    text-shadow: none;
}

.oo-result-main.oo-accent-orange {
    background: #fef7e0;
    border-color: #feebc8;
    color: #b06000;
}
.oo-result-main.oo-accent-orange .oo-result-main-value {
    color: #b06000;
    text-shadow: none;
}

/* Recommendations badge in comparative decisions */
.oo-recommendation-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
}
.oo-rec-ltd {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #d2e3fc;
}
.oo-rec-sahis {
    background: #fef7e0;
    color: #b06000;
    border: 1px solid #feebc8;
}
.oo-rec-equal {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Detailed Breakdowns */
.oo-result-rows {
    margin-bottom: 1.5rem;
}

.oo-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.oo-result-row:last-child {
    border-bottom: none;
}

.oo-row-label {
    color: var(--oo-text-muted);
    font-weight: 500;
}

.oo-row-val {
    color: #1e293b;
    font-weight: 700;
}

.oo-row-val.highlight-green {
    color: #137333;
}

.oo-row-val.highlight-red {
    color: #c5221f;
}

/* Interactive custom bar chart */
.oo-chart-container {
    margin-top: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.oo-chart-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--oo-text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.oo-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oo-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oo-bar-label {
    width: 90px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.oo-bar-track {
    flex-grow: 1;
    background: #e2e8f0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.oo-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.oo-bar-fill.primary {
    background: #1a73e8;
}

.oo-bar-fill.secondary {
    background: #137333;
}

.oo-bar-val {
    width: 90px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

/* Responsive disclaimer */
.oo-calc-disclaimer {
    font-size: 0.75rem;
    color: var(--oo-text-muted);
    line-height: 1.45;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.oo-calc-disclaimer strong {
    color: #1e293b;
}

/* NACE code results UI elements */
.oo-nace-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oo-nace-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
    transition: var(--oo-transition);
}

.oo-nace-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.oo-nace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.oo-nace-code {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 4px 8px;
    border-radius: 6px;
}

.oo-nace-class {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.oo-nace-class.az-tehlikeli {
    background: #e6f4ea;
    color: #137333;
}

.oo-nace-class.tehlikeli {
    background: #fef7e0;
    color: #b06000;
}

.oo-nace-class.cok-tehlikeli {
    background: #fce8e6;
    color: #c5221f;
}

.oo-nace-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date Selector Grid */
.oo-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .oo-dashboard-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .oo-subcalc-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        scrollbar-width: none;
    }
    
    .oo-subcalc-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .oo-subcalc-card {
        flex-direction: column;
        text-align: center;
        padding: 8px 12px;
        min-width: 130px;
    }
    
    .oo-subcalc-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .oo-subcalc-info h4 {
        font-size: 0.8rem;
    }
    
    .oo-subcalc-info p {
        display: none;
    }
    
    .oo-calc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .oo-calc-wrapper {
        padding: 2rem 1rem;
        margin: 1rem auto;
        border-radius: 16px;
    }
    
    .oo-calc-header h1 {
        font-size: 1.75rem;
    }
    
    .oo-category-navigation {
        justify-content: flex-start;
        padding: 6px;
        margin-bottom: 1.5rem;
    }
    
    .oo-cat-tab-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .oo-calc-form-sec,
    .oo-calc-results-sec {
        padding: 1.5rem 1.25rem;
    }
    
    .oo-result-main {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .oo-result-main-value {
        font-size: 2rem;
    }
}

@media (max-width: 390px) {
    .oo-calc-wrapper {
        padding: 1.25rem 0.5rem;
        border-radius: 12px;
    }
    
    .oo-calc-header h1 {
        font-size: 1.4rem;
    }
    
    .oo-cat-tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .oo-result-main-value {
        font-size: 1.6rem;
    }
    
    .oo-bar-label {
        width: 70px;
        font-size: 0.75rem;
    }
    
    .oo-bar-val {
        width: 70px;
        font-size: 0.75rem;
    }
}

/* Three columns layout for Kıdem/İhbar tenure inputs */
.oo-input-row-three {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.oo-input-row-three .oo-input-col {
    flex: 1;
}
.oo-input-row-three .oo-sub-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Custom premium buttons */
.oo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--oo-transition);
    border: 1px solid transparent;
    height: 46px;
    box-sizing: border-box;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.oo-btn-outline-blue {
    background-color: #e8f0fe;
    color: #1a73e8 !important;
    border: 1px solid #d2e3fc;
}

.oo-btn-outline-blue:hover {
    background-color: #d2e3fc;
    color: #1557b0 !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.oo-nace-search-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .oo-nace-search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}


/* === FAZ B: Disclaimer + Kaynak rozeti === */
.oo-calc-results-sec::after{
    content:"\26A0  Bu sonuç ön bilgilendirme amaçlıdır; kesin hesap için mali müşavirinize danışın.";
    display:block;margin-top:14px;padding-top:10px;border-top:1px solid #e5e7eb;
    font-size:12px;color:#6b7280;line-height:1.5;font-weight:500;
}
.oo-source-badge{
    display:inline-block;margin-top:10px;padding:6px 14px;background:#e6f4ea;color:#137333;
    border-radius:999px;font-size:12.5px;font-weight:600;
}


/* === FAZ C-1: WhatsApp koprusu + changelog === */
.oo-result-wa{display:inline-flex;align-items:center;gap:7px;margin-top:12px;background:#25d366;color:#fff;border-radius:999px;padding:10px 18px;font-size:13.5px;font-weight:700;text-decoration:none}
.oo-result-wa:hover{background:#1ebe5b;color:#fff}
.oo-changelog summary::-webkit-details-marker{display:none}
