/* ======== Navbar ======== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu li a:hover {
    color: #4A154B;
}

.navbar-button {
    background-color: #4A154B;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.navbar-button:hover {
    background-color: #45a049;
}

/* ======== Footer ======== */
.main-footer {
    background: #f9f9f9;
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #777;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.03);
}

.main-footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ======== Header ======== */
header {
    width: 100%;
    background: #f9f9f9;
    padding: 30px 20px 20px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#page-title {
    font-size: 28px;
    font-weight: 700;
    color: #3d3d3d;
    margin: 0;
}

.header-underline {
    width: 0;
    height: 3px;
    background-color: #4A154B;
    border-radius: 2px;
    margin: 10px auto 20px;
    animation: grow-line 1s ease forwards;
}

.header-subtitle {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

@keyframes grow-line {
    to {
        width: 500px;
    }
}

/* ======== Adjust Body Setup ======== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ======== Container Principal ======== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

/* ======== Inputs Section ======== */
.inputs {
    flex: 1 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

.inputs label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

input, button {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

input {
    background-color: #fafafa;
    color: #333;
}

button {
    background-color: #4A154B;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4A154B;
}

/* ======== Resultados Section ======== */
.results {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

#totalCapital, #contributedCapital {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* ======== Chart and Placeholder ======== */
#chartWrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

#placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #aaa;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======== Table Section ======== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
}

table th {
    background-color: #4A154B;
    color: #fff;
    font-weight: bold;
}

table td {
    background-color: #fafafa;
    border-bottom: 1px solid #ddd;
}