/* * Calculator Specific Styles
 * This file handles specific UI elements for tools like EMI, GST, SIP, etc.
 */

/* =========================================
   1. RESULT BOXES & CARDS
   ========================================= */

/* The main container for results (used in EMI, SIP, FD) */
.result-box-highlight {
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-value-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
    line-height: 1.2;
}

/* Profit & Loss Dynamic Colors */
.status-profit {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%) !important;
    border: 2px solid #198754 !important;
    color: #0f5132 !important;
}

.status-loss {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%) !important;
    border: 2px solid #dc3545 !important;
    color: #842029 !important;
}

/* =========================================
   2. CUSTOM TOGGLE SWITCH (Used in GST Calc)
   ========================================= */
.toggle-switch-container {
    display: inline-flex;
    background: #e9ecef;
    padding: 4px;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.toggle-option {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-option.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =========================================
   3. UNIT CONVERTER NAVIGATION
   ========================================= */
.converter-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.converter-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-pill-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 50px;
    color: #495057;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-pill-icon:hover {
    background: #f8f9fa;
}

.nav-pill-icon.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* =========================================
   4. CIRCULAR PROGRESS (Used in SGPA & Profit %)
   ========================================= */
.circle-progress-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, #e9ecef 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background 0.5s ease;
}

.circle-progress-inner {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* =========================================
   5. CHART CONTAINERS
   ========================================= */
.chart-box-responsive {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-box-responsive {
        height: 250px;
    }
    .result-value-big {
        font-size: 2rem;
    }
}

/* =========================================
   6. FILE UPLOAD ZONES (Image/PDF Tools)
   ========================================= */
.drag-drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 12px;
    background-color: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
    background-color: #e9ecef;
    border-color: var(--primary-color);
}

.drag-drop-zone i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Hidden File Input */
.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}