 body {
    font-family: 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
h1, h2 {
    color: #ffaa00;
    text-align: center;
    margin-bottom: 30px;
}        
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    cursor: pointer;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}
th {
    background: #333;
    color: #ffaa00;
}
tr:hover {
    background: #3a3a3a;
}
.selected-row {
    background: #3a3a3a !important;
    border-left: 3px solid #ffaa00;
}
.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    background: #2a2a2a;
    border-radius: 5px;
     margin-top: 20px;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.loading, .no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    color: #888;
    background: #2a2a2a;
    border-radius: 5px;
    z-index: 10;
}
.error-message {
    color: #ff6b6b;
}

.search-container {
    position: relative;
    margin-bottom: 30px;
}
.search-wrapper {
    display: flex;
    gap: 10px;
}
#search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    background: #333;
    border: 2px solid #444;
    color: white;
    border-radius: 8px;
    transition: all 0.3s;
    box-sizing: border-box;
}
#search-input:focus {
    outline: none;
    border-color: #ffaa00;
    background: #3a3a3a;
}
#search-button {
    padding: 15px 30px;
    background: #ffaa00;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
#search-button:hover {
    background: #ffbb22;
    transform: translateY(-2px);
}
#search-button:active {
    transform: translateY(0);
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    display: none;
}
.search-results.has-results {
    display: block;
}
.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-result-item:hover {
    background: #3a3a3a;
}
.search-result-pair {
    color: #ffaa00;
    font-weight: bold;
    font-size: 1.1em;
}
.search-result-price {
    color: #e0e0e0;
}
.search-result-source {
    color: #888;
    font-size: 0.9em;
    margin-left: 10px;
}
#rateChart {
    width: 100%;
    height: 400px; /* фиксированная высота */
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

a { 
    color: #ffaa00; 
    text-decoration: none; 
}
a:hover { 
    text-decoration: underline; 
}
.price-box { 
    background: #1f1e1e;
    padding: 30px; 
    border-radius: 10px; 
    text-align: center; 
    margin: 20px 0; 
}
.current-price { 
    font-size: 3em; 
    color: #ffaa00; 
    font-weight: bold; 
}
.info { 
    color: #888; 
    margin: 10px 0; 
}

.search-page { 
    max-width: 800px; 
    margin: 0 auto; 
}
input { width: 100%; padding: 15px; font-size: 1.2em; background: #333; border: 1px solid #444; color: white; }
.results { margin-top: 20px; }
.result-item { background: #201f1f; padding: 15px; margin-bottom: 10px; border-radius: 5px; }
.result-item:hover { background: #3a3a3a; }
.pair { font-size: 1.2em; color: #ffaa00; }
.price { font-size: 1.1em; }
.source { color: #888; font-size: 0.9em; }
.pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.pair-card { background: #2a2a2a; padding: 20px; border-radius: 10px; cursor: pointer; transition: background 0.3s; border: 1px solid #5c5a5a;}
.pair-card:hover { background: #3a3a3a; }
.pair-name { font-size: 1.3em; color: #ffaa00; font-weight: bold; }
.price { font-size: 1.5em; margin: 10px 0; }
.updated { color: #888; font-size: 0.9em; }

ul.menu {
    margin: 0; /* Обнуляем значение отступов */
    padding: 4px; /* Значение полей */
}
ul.menu li {
    display: inline; /* Отображать как строчный элемент */
    margin-right: 5px; /* Отступ слева */
    padding: 3px; /* Поля вокруг текста */
}

#footer {
  text-align: center;
}

#footer p {
  color: #ffaa00;
}


