/* P2P Market Demo - Простий CSS */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.header h1 {
    margin: 0;
    font-size: 2rem;
}

.header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

/* Картки */
.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card h2 {
    margin-top: 0;
    color: #495057;
    font-size: 1.5rem;
}

/* Баланс */
.balance {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    margin: 20px 0;
    padding: 20px;
    background: #f8fff8;
    border: 2px solid #e7f7e7;
    border-radius: 10px;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Форми */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Повідомлення */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Таблиця операцій */
.transactions {
    margin-top: 30px;
}

.transaction-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.transaction-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.transaction-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.amount-positive {
    color: #28a745;
}

.amount-negative {
    color: #dc3545;
}

/* Статуси */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Простий авторизація */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header div[style*="display: flex"] {
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
    }
    
    .header div[style*="text-align: right"] {
        text-align: center !important;
        margin-top: 15px;
    }
    
    .balance {
        font-size: 2rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-amount {
        margin-top: 10px;
    }
}

/* Логи */
.logs {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* Кольорові індикатори */
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }
.text-muted { color: #6c757d !important; }

/* Маленька кнопка */
.btn-small {
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: normal;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-small:hover {
    transform: translateY(-1px);
    text-decoration: none;
} 