/* ======== MODO BLANCO Y NEGRO GENERAL ======== */
body {
    background: #fff !important;
    color: #111 !important;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Contenedor principal amplio y elegante */
.compound-container {
    max-width: 600px;
    margin: 48px auto 0 auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.07);
}

/* Título */
.compound-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #181818;
    letter-spacing: -1px;
    text-align: center;
}

/* Barra lateral izquierda en blanco y negro */
.sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #fff !important;
    border-right: 2px solid #111;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 1rem 1rem;
    gap: 2rem;
    box-shadow: 2px 0 16px 0 #0001;
}

.sidebar-left .logo-trackerfolio {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-left .logo-trackerfolio i {
    font-size: 2rem;
    color: #111;
    margin-right: 0.7rem;
}

.sidebar-left .logo-trackerfolio span {
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 1.5px;
}

.sidebar-left nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-left nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    transition: background 0.18s, color 0.18s;
}

.sidebar-left nav a:hover,
.sidebar-left nav a.active {
    background: #111;
    color: #fff;
}

/* Ajusta el contenido principal para dejar espacio a la barra lateral izquierda */
.container {
    margin-left: 240px;
    background: #fff;
    color: #111;
    border-radius: 0;
    box-shadow: none;
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    min-height: 100vh;
    width: calc(100vw - 240px);
    max-width: 100vw;
    box-sizing: border-box;
    transition: width 0.3s;
}

@media (max-width: 900px) {
    .sidebar-left {
        width: 60vw;
        min-width: 140px;
        padding: 1rem 0.5rem;
    }
    .container {
        margin-left: 60vw;
        width: calc(100vw - 60vw);
        padding: 1.2rem 0.5rem;
    }
}
@media (max-width: 600px) {
    .sidebar-left {
        width: 100vw;
        min-width: 0;
        padding: 0.7rem 0.2rem;
        position: static;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    .sidebar-left .logo-trackerfolio {
        margin-bottom: 0;
        font-size: 1rem;
    }
    .container {
        margin-left: 0;
        width: 100vw;
        padding: 0.5rem 0.1rem;
    }
}

/* Card y formulario en blanco y negro */
.card {
    background: #fff;
    border: 1.5px solid #111;
    border-radius: 0.7rem;
    box-shadow: none;
}

.card-header {
    background: #111 !important;
    color: #fff !important;
    border-radius: 0.7rem 0.7rem 0 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-body {
    background: #fff;
    color: #111;
    border-radius: 0 0 0.7rem 0.7rem;
}

/* Formulario */
#compoundInterestForm {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem 1rem 1rem 1rem;
    box-shadow: none;
    border: 1px solid #111;
    margin-bottom: 2rem;
}

#compoundInterestForm label {
    font-weight: 600;
    color: #111;
}

#compoundInterestForm input,
#compoundInterestForm select {
    border-radius: 0.5rem;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-size: 1rem;
    padding: 8px 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#compoundInterestForm input:focus,
#compoundInterestForm select:focus {
    border-color: #111;
    outline: none;
}

#compoundInterestForm button[type="submit"] {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
    margin-top: 10px;
    width: 100%;
}

#compoundInterestForm button[type="submit"]:hover {
    background: #333;
}

/* Resultado */
#compoundInterestResult {
    font-size: 1.15rem;
    margin: 24px 0 18px 0;
    color: #111;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #111;
    padding: 14px 18px;
    font-weight: 500;
    text-align: center;
}

/* Gráfica */
#compoundInterestChart {
    width: 100% !important;
    min-height: 340px;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #111;
    box-shadow: none;
    margin-bottom: 24px;
    padding: 12px;
}

/* Tabla de resultados */
.compound-table {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    margin-top: 18px;
    border: 1px solid #111;
    box-shadow: none;
}

.compound-table th, .compound-table td {
    color: #111;
    font-size: 1rem;
    padding: 8px 12px;
    border: 1px solid #111;
}

.compound-table th {
    background: #111;
    color: #fff;
    font-weight: 600;
}

.compound-table tr:nth-child(even) {
    background: #f5f5f5;
}

/* Alertas */
.alert-danger {
    background: #111;
    color: #fff;
    border: none;
    text-align: center;
}

/* ======== BARRA LATERAL DERECHA ESTILO INDEX ======== */
.sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100vh;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: -2px 0 24px 0 rgba(0,0,0,0.08);
    border-left: 2.5px solid #181818;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.2rem 1.2rem 1.2rem 1.2rem;
    gap: 2.5rem;
}

.sidebar-right .logo-trackerfolio {
    width: 160px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-right .logo-trackerfolio img {
    width: 44px;
    height: 44px;
    margin-right: 0.7rem;
}

.sidebar-right .logo-trackerfolio span {
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #181818;
    letter-spacing: 1.5px;
}

.sidebar-right nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-right nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.09rem;
    color: #181818;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    transition: background 0.18s, color 0.18s;
}

.sidebar-right nav a:hover,
.sidebar-right nav a.active {
    background: #181818;
    color: #fff;
}

@media (max-width: 900px) {
    .sidebar-right {
        width: 70vw;
        min-width: 180px;
        padding: 1.2rem 0.5rem;
    }
    .sidebar-right .logo-trackerfolio {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .sidebar-right {
        width: 98vw;
        min-width: 0;
        padding: 0.7rem 0.2rem;
    }
    .sidebar-right .logo-trackerfolio span {
        font-size: 1.1rem;
    }
}

/* Ajusta el contenido principal para dejar espacio a la barra lateral izquierda */
.container {
    margin-left: 240px;
    background: #fff;
    color: #111;
    border-radius: 0;
    box-shadow: none;
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    min-height: 100vh;
    width: calc(100vw - 240px);
    max-width: 100vw;
    box-sizing: border-box;
    transition: width 0.3s;
}

@media (max-width: 900px) {
    .container {
        margin-left: 60vw;
        width: calc(100vw - 60vw);
        padding: 1.2rem 0.5rem;
    }
}
@media (max-width: 600px) {
    .container {
        margin-left: 0;
        width: 100vw;
        padding: 0.5rem 0.1rem;
    }
}