/* Base & Layout */
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    text-align: center;
}

.container {
    width: 90%;
    margin: auto;
    padding: 20px;
}

h1, h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

input[type="text"] {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Navigation */
nav {
    background: #333;
    padding: 10px 20px;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
nav ul li {
    display: inline;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav ul li a:hover {
    text-decoration: underline;
}

/* Tables (Crypto, Orders) */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}
.crypto-table {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}
.crypto-table th {
    background: #333;
    color: white;
}
.positive {
    color: green;
    font-weight: bold;
}
.negative {
    color: red;
    font-weight: bold;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}
.pagination a {
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #333;
    color: #333;
    margin: 5px;
    border-radius: 5px;
    display: inline-block;
}
.pagination a:hover {
    background: #333;
    color: white;
}

/* Flash Messages */
.flashes {
    max-width: 500px;
    margin: 10px auto;
    padding: 10px;
    list-style: none;
}
.flash {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    text-align: center;
}
.flash.success { background-color: #d4edda; color: #155724; }
.flash.danger  { background-color: #f8d7da; color: #721c24; }
.flash.info    { background-color: #cce5ff; color: #004085; }

/* Mobile */
@media (max-width: 768px) {
    body { padding: 10px; }
    h1, h2 { font-size: 20px; }
    input[type="text"] { width: 90%; }
    .crypto-table { display: block; overflow-x: auto; white-space: nowrap; }
    .pagination a { padding: 6px 10px; font-size: 14px; }
    nav ul { flex-direction: column; align-items: center; }
}