/* Import base styles from index.css */
@import url('./index.css');

/* Dropdown Styles Override for SIP Calculator */
.dropdown-container {
    position: relative;
    display: inline-block;
}

/* CSS-only hover support as fallback */
.dropdown-container:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-container:hover .dropdown-button {
    color: #EDC568;
    background: rgba(237, 197, 104, 0.15);
}

.dropdown-container:hover .dropdown-button::before {
    width: 100%;
}

.dropdown-container:hover .dropdown-button .arrow-icon {
    transform: rotate(-180deg);
}

/* SIP Calculator Main Styles */
.sip-calculator-main {
    background-color: #000000;
    min-height: 100vh;
    /* padding: 120px 0 0 0; Account for fixed header */
}

.sip-calculator-section {
    padding: 80px 20px;
    background-color: #000000;
    /* min-height: calc(100vh - 120px); */
}

.calculator-container {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.calculator-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.calculator-header h1 {
    font-size: 2.5rem;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.calculator-header p {
    font-size: 1.1rem;
    color: #FFFFFF;
    opacity: 0.8;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

/* Input Section */
.calculator-inputs {
    padding: 40px;
    background: #1A1A1A;
    border-right: 2px solid rgba(255, 215, 0, 0.2);
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    color: #FFD700;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-container {
    position: relative;
}

.input-container input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.input-container input[type="number"]:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.slider-container {
    margin-top: 15px;
    position: relative;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #FFD700, #B08D57);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #000000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #000000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FFD700, #B08D57);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #B08D57, #FFD700);
}

/* Results Section */
.calculator-results {
    padding: 40px;
    background: #2A2A2A;
    display: flex;
    flex-direction: column;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#sipChart {
    width: 100%;
    height: 100%;
}

.results-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.result-item {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.result-label {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.total-value .result-value {
    font-size: 1.6rem;
    color: #00FF88;
}

.investment-breakdown {
    flex: 1;
}

.investment-breakdown h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-table {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 0.85rem;
}

.breakdown-row:nth-child(odd) {
    background: rgba(255, 215, 0, 0.05);
}

.breakdown-row.header {
    background: rgba(255, 215, 0, 0.2);
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-row:not(.header) {
    color: #FFFFFF;
}

.breakdown-row span:nth-child(2),
.breakdown-row span:nth-child(3) {
    text-align: right;
}

/* Custom scrollbar for breakdown table */
.breakdown-table::-webkit-scrollbar {
    width: 6px;
}

.breakdown-table::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 3px;
}

.breakdown-table::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calculator-container {
        margin: 0 20px;
    }
    
    .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .calculator-inputs {
        border-right: none;
        border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .sip-calculator-section {
        padding: 40px 10px;
    }
    
    .calculator-header {
        padding: 30px 20px 20px;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .calculator-inputs,
    .calculator-results {
        padding: 30px 20px;
    }
    
    .input-group {
        margin-bottom: 25px;
    }
    
    .breakdown-row {
        grid-template-columns: 2fr 1fr 1fr;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .result-value {
        font-size: 1.2rem;
    }
    
    .total-value .result-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .calculator-header p {
        font-size: 1rem;
    }
    
    .calculator-inputs,
    .calculator-results {
        padding: 20px 15px;
    }
    
    .input-container input[type="number"] {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .calculate-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    .breakdown-row {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

/* Header positioning for this page */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 120px;
    background-color: transparent;
    z-index: 1000;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sticky header states */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 120px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(237, 197, 104, 0.2);
}

.navbar.sticky-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar.sticky-visible {
    transform: translateY(0);
    opacity: 1;
    animation: slideDownFade 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth slide down animation */
@keyframes slideDownFade {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo scaling in sticky mode */
.navbar.sticky .logo img {
    height: 4vh;
    transition: height 0.3s ease;
}

/* Responsive sticky header */
@media (max-width: 1200px) {
    .navbar.sticky {
        padding: 12px 40px;
    }
}

@media (max-width: 992px) {
    .navbar.sticky {
        padding: 12px 20px;
    }
    
    .navbar.sticky .logo img {
        height: 3.5vh;
    }
}

@media (max-width: 768px) {
    .navbar.sticky {
        padding: 10px 20px;
    }
    
    .navbar.sticky .logo img {
        height: 3vh;
    }
}

/* Footer Styles */
.main-footer {
    background-color: #1a1a1a;
    color: white;
    font-weight: 600;
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    align-items: flex-start;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    background: linear-gradient(135deg, #FFD700, #B08D57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(5px);
}

.footer-logo img {
    max-width: 300px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .footer-logo img {
        max-width: 180px;
    }
}

.footer-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    flex: 1;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    background: linear-gradient(135deg, #FFD700, #B08D57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(-5px);
}

.footer-address {
    max-width: 320px;
    text-align: right;
}

.footer-address a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.footer-address a:hover {
    color: #FFD700;
}

.footer-address a:hover i {
    color: #fff;
}

.footer-address i {
    font-size: 16px;
    margin-top: 5px;
    color: #FFD700;
    transition: color 0.3s ease;
}


.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.social-icon:hover {
    color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(176, 141, 87, 0.2));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-info {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    color: white;
    font-size: 14px;
}

.dot-separator {
    margin: 0 10px;
}

.copyright {
    margin-left: auto;
}

@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 40px 20px;
    }
    
    .footer-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px 40px;
        align-items: center;
    }

    .footer-nav .social-icons {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .copyright {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        gap: 15px;
    }
    
    .dot-separator {
        display: none;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 5px;
    }
} 