body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 100%);
    min-height: 100vh;
    color: #333;
}

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

.header {
    text-align: center;
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #8b5cf6;
    position: relative;
}

.header h1 {
    color: #8b5cf6;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-btn {
    background: #8b5cf6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: #7c3aed;
    transform: translateY(-2px);
}

.page {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border: 1px solid #8b5cf6;
}

.page.active {
    display: block;
}

.section {
    background: rgba(139, 92, 246, 0.05);
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #8b5cf6;
}

.section h3 {
    color: #8b5cf6;
    margin-bottom: 15px;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #8b5cf6;
    font-weight: bold;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #8b5cf6;
    border-radius: 5px;
    background: white;
}

.profit-display {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
}

.bloc-container {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #8b5cf6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
}

.bloc-title {
    background: #8b5cf6;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 15px;
}

.sous-bloc {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.crypto-selector {
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #8b5cf6;
}

.archive-section {
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #8b5cf6;
}

.auth-form {
    background: rgba(139, 92, 246, 0.1);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #8b5cf6;
}

.auth-form h3 {
    color: #8b5cf6;
    margin-bottom: 20px;
    text-align: center;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.btn {
    background: #8b5cf6;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin: 10px 0;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #7c3aed;
}

.settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.settings-btn:hover {
    background: #7c3aed;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #8b5cf6;
    text-align: center;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #8b5cf6;
}

.user-item button {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
}

.user-item button:hover {
    background: #dc2626;
}

.hidden {
    display: none;
}

.budget-section {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.rates-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rates-container .input-group {
    flex: 1;
    min-width: 150px;
}

.stake-amount {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-container input {
    flex: 1;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.results-table th {
    background-color: #f2f2f2;
}

.block-header {
    background-color: #e7e7e7;
    font-weight: bold;
}

.currency {
    text-align: right;
}

.archive-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border: 1px solid #8b5cf6;
}

.calendar-title {
    color: #8b5cf6;
    margin-bottom: 15px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.calendar-cell {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.bullish {
    background-color: #d4edda;
}

.bearish {
    background-color: #f8d7da;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background-color: #f2f2f2;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-selector select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #8b5cf6;
    background-color: white;
}

.trading-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.trading-cell {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    background-color: rgba(139, 92, 246, 0.1);
}

.archive-display {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: rgba(139, 92, 246, 0.1);
    width: 100%;
}

.profit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.profit-table th {
    background-color: #f2f2f2;
}

.trend-indicator {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.trend-bullish {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.trend-bearish {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.trend-neutral {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.warning-box {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
}

.leverage-display {
    background: rgba(139, 92, 246, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 2px solid #8b5cf6;
}

.position-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin: 5px 0;
}

.buy-stop {
    background-color: #28a745;
    color: white;
}

.sell-stop {
    background-color: #dc3545;
    color: white;
}