/* css/styles.css */

/* General page styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 24px;
    background: linear-gradient(to bottom, #fffde7, #fef08a);
    color: #333;
    box-sizing: border-box;
}

/* Header and navigation styling */
.header {
    background: #1a1a1a;
    color: #fff;
    padding: 16px;
    text-align: center;
}

.header a {
    color: #fef08a;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 600;
}

.header a:hover {
    text-decoration: underline;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-menu li {
    margin: 0 16px;
}

/* Container for introductory content */
.intro-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 24px auto;
    text-align: center;
}

/* Main content containers for app and calculator */
.container, .app-container {
    display: block;
    width: 90%;
    max-width: 800px;
    margin: 24px auto !important;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    text-align: left;
}

.content {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

/* Form styling for register, login, free_app, etc. */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.3);
}

button {
    background: #1976d2;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #1565c0;
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
}

/* Headings */
h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
}

h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 32px;
}

h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 16px 0;
}

/* Paragraphs and links */
p {
    font-size: 16px;
    line-height: 1.5;
    margin: 16px 0;
    color: #333;
}

a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Metrics, projections, and history items */
.metric, .history-item, .projection-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.metric i, .history-item i, .projection-item i {
    margin-right: 12px;
    font-size: 24px;
}

.history-item i.funding {
    color: #1976d2;
}

.history-item i.trading {
    color: #455a64;
}

.projection-item i.timeline {
    color: #388e3c;
}

.projection-item i.final {
    color: #ffb300;
}

.metric span, .history-item span, .projection-item span {
    flex: 1;
}

/* Calculator result styling */
.spot-counter {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }
    .intro-container, .container, .app-container {
        width: 95%;
        padding: 16px;
    }
    .form-group input {
        max-width: 100%;
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 22px;
    }
    h3 {
        font-size: 20px;
    }
    p {
        font-size: 14px;
    }
    .metric, .history-item, .projection-item {
        font-size: 18px;
    }
}

/* Footer styling to match header, with !important to prevent overrides */
footer {
    background: #1a1a1a !important;
    color: #fff;
    text-align: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}