/* Staking Rewards Calculator Styles */

:root {
    --primary: #4CAF50;
    --primary-dark: #45a049;
    --secondary: #2196F3;
    --danger: #f44336;
    --bg: #f9f9f9;
    --text: #333;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.tagline {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

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

.hero {
    text-align: center;
    margin: 40px 0;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 10px 0;
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.features {
    background: white;
    padding: 30px;
    border-radius: 5px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.features h3, .faq h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    padding: 8px 0;
    font-size: 16px;
}

.faq {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Calculator Styles */
.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .calculator {
        grid-template-columns: 1fr;
    }
}

.input-section, .result-section {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.input-section h2, .result-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    font-size: 14px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.hint {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

#calculate {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: var(--bg);
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.result-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.chart-container {
    margin: 20px 0;
}

.pro-prompt {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    color: #856404;
}

.pro-hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-family: monospace;
}

#newCalculation {
    width: 100%;
    margin-top: 20px;
}

#proFeatures {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

#proFeatures h3 {
    font-size: 16px;
    margin: 15px 0;
}

#proFeatures table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#proFeatures th, #proFeatures td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

#proFeatures th {
    background: var(--bg);
    font-weight: 600;
}

.info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    color: #1565c0;
}

footer {
    background: white;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    font-size: 12px;
    color: #999;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-container main {
    flex: 1;
}
