* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background-color: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    margin: 20px;
}

.login-container h2 {
    margin-top: 0;
    text-align: center;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 25px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.logout-btn {
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    color: #007BFF;
    text-decoration: none;
    font-size: 14px;
}

/* Mobilanpassning */
@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }

    input[type="text"],
    input[type="password"],
    button {
        font-size: 15px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f8fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

select, input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    align-self: flex-end;
}

button:hover {
    background: #2980b9;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    height: 400px;
    position: relative;
}

.results {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#transactions {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
}

.transaction {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.transaction.buy {
    background-color: rgba(46, 204, 113, 0.1);
}

.transaction.sell {
    background-color: rgba(231, 76, 60, 0.1);
}

#summary {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
}

/* Responsiv design */
@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
}
/* Lägg till dessa regler i din CSS-fil */

.txn-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
}

.txn-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 5px;
}

.profit {
    color: #27ae60;
    font-weight: bold;
}

.loss {
    color: #e74c3c;
    font-weight: bold;
}

.txn-type {
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
}

.transaction.buy .txn-type {
    background-color: #2ecc71;
}

.transaction.sell .txn-type {
    background-color: #e74c3c;
}