/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2a3c7c);
    color: #fff;
    min-height: 100vh;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    color: #4CAF50;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #4CAF50;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid #4CAF50;
}

.btn-login:hover {
    background: #4CAF50;
}

.btn-register {
    background: #4CAF50;
    color: #fff;
}

.btn-register:hover {
    background: #3d8b40;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #4CAF50;
    text-decoration: none;
}

.balance-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    color: #4CAF50;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: block;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chart-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 400px;
}

.trading-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.trade-btn {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-buy {
    background: #4CAF50;
    color: white;
}

.btn-buy:hover {
    background: #3d8b40;
}

.btn-sell {
    background: #f44336;
    color: white;
}

.btn-sell:hover {
    background: #d32f2f;
}

.timer {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
}

.trade-history {
    margin-top: 40px;
}

.trade-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-win {
    border-left: 4px solid #4CAF50;
}

.trade-lose {
    border-left: 4px solid #f44336;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        display: none;
    }
    
    .trading-controls {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}