/* Basic styling rules */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50; /* Dark blue-gray */
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #34495e; /* Slightly lighter blue-gray */
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #777;
    border-top: 1px solid #eee;
}

/* Formular Styling */
form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 20px auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

form input[type="email"],
form input[type="password"],
form input[type="text"] {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width */
}

form button {
    background-color: #28a745; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #218838; /* Darker green */
}


/* Flash Messages */
.flashes {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.flashes li {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes .danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flashes .warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flashes .info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.cta-buttons {
    text-align: center;
    margin-top: 30px;
}

.button {
    display: inline-block;
    background-color: #28a745; /* Green */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.button.secondary {
    background-color: #6c757d; /* Gray */
}

.button:hover {
    background-color: #27ae60; /* Darker green */
}

.button.secondary:hover {
    background-color: #7f8c8d; /* Darker gray */
}

/* Old teaser-section - replaced by performance-overview-section */
/* Keeping the styles for now, but new section takes precedence */
.teaser-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.teaser-card {
    background-color: #e9f7ef; /* Light green background */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.placeholder-chart, .placeholder-chart-pro {
    background-color: #e0e0e0; /* Light gray */
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #666;
    margin: 20px 0;
}

/* Table styles for Live Signals */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #f2f2f2; /* Lighter gray */
    color: #555;
}

table tr:nth-child(even) {
    background-color: #f8f8f8; /* Very light gray for even rows */
}

.buy-direction {
    color: #28a745; /* Green for BUY */
    font-weight: bold;
}

.sell-direction {
    color: #dc3545; /* Red for SELL */
    font-weight: bold;
}

/* NEW STYLES FOR INDEX.HTML PERFORMANCE OVERVIEW */
.performance-overview-section {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.performance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745; /* Green for positive values */
    margin-bottom: 0;
}

.performance-note {
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
}

.performance-note a {
    color: #2c3e50;
    text-decoration: underline;
}
