/* ============================================
   HardCash Exchange Module Styles
   Префикс: hc- (HardCash)
   ============================================ */

/* ========== КОНТЕЙНЕР ========== */
.hc-balance-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    padding: 15px;
}

.hc-balance-item {
    text-align: center;
    padding: 15px 25px;
    background: var(--cvet-vnutri-bloka);
    border-radius: 12px;
    min-width: 150px;
}

.hc-balance-label {
    display: block;
    font-size: 14px;
    color: var(--vtorostepennyy-tekst);
    margin-bottom: 8px;
}

.hc-balance-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--glavnyy-tekst);
}

/* ========== ФОРМА ОБМЕНА ========== */
.hc-exchange-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

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

.hc-exchange-form .hc-input {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 10px;
    background: var(--cvet-vnutri-bloka);
    border: 1px solid var(--vtorostepennyy-cvet-bloka);
    border-radius: 8px;
    color: var(--glavnyy-tekst);
}

.hc-exchange-form .hc-input:focus {
    outline: none;
    border-color: var(--orange);
}

.hc-exchange-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--vtorostepennyy-tekst);
}

/* ========== АЛЁРТЫ ========== */
.hc-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.hc-alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.hc-alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.hc-alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.hc-alert-info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid #17a2b8;
    color: #17a2b8;
}

/* ========== НАВИГАЦИЯ ПО СЕРВЕРАМ ========== */
.hc-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.hc-nav-scroller {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.hc-nav-scroller::-webkit-scrollbar {
    display: none;
}

.hc-nav-list {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    list-style: none;
    margin: 0;
    white-space: nowrap;
}

.hc-nav-list li {
    display: inline-block;
}

.hc-nav-list li a {
    display: block;
    padding: 8px 16px;
    background: var(--cvet-vnutri-bloka);
    border-radius: 8px;
    color: var(--glavnyy-tekst);
    text-decoration: none;
    transition: all 0.2s;
}

.hc-nav-list li.active a,
.hc-nav-list li a:hover {
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
}

.hc-nav-arrow {
    background: var(--cvet-vnutri-bloka);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glavnyy-tekst);
    transition: all 0.2s;
}

.hc-nav-arrow:hover:not(:disabled) {
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
}

.hc-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
.hc-admin-container {
    padding: 20px;
    background: #0a0a0a;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.hc-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.hc-admin-title {
    font-size: 24px;
    font-weight: 600;
    color: #e1e3e6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-admin-actions {
    display: flex;
    gap: 10px;
}

.hc-table-wrapper {
    overflow-x: auto;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hc-table th {
    text-align: left;
    padding: 15px;
    background: #2c2c2c;
    color: #e1e3e6;
    font-weight: 600;
    border-bottom: 1px solid #3a3a3a;
}

.hc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2c2c2c;
    color: #e1e3e6;
    vertical-align: middle;
}

.hc-table-row:hover {
    background: #2c2c2c;
}

/* ========== АДМИН-КНОПКИ ========== */
.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.hc-btn-primary {
    background: #528bff;
    color: #ffffff;
}

.hc-btn-primary:hover {
    background: #3a6fd9;
}

.hc-btn-default {
    background: #3a3a3a;
    color: #e1e3e6;
}

.hc-btn-default:hover {
    background: #4a4a4a;
}

.hc-btn-danger {
    background: #c62828;
    color: #ffffff;
}

.hc-btn-danger:hover {
    background: #b71c1c;
}

.hc-btn-info {
    background: #17a2b8;
    color: #ffffff;
}

.hc-btn-info:hover {
    background: #138496;
}

/* ========== АДМИН-МОДАЛЬНОЕ ОКНО ========== */
.hc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.hc-modal-content {
    position: relative;
    background: #1e1e1e;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.hc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2c2c2c;
    background: #2c2c2c;
}

.hc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #e1e3e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8f8f8f;
    transition: color 0.2s;
}

.hc-modal-close:hover {
    color: #e1e3e6;
}

.hc-modal-body {
    padding: 20px;
}

.hc-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #2c2c2c;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== АДМИН-ФОРМЫ ========== */
.hc-form-group {
    margin-bottom: 15px;
}

.hc-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #e1e3e6;
    font-size: 13px;
}

.hc-required {
    color: #ff5252;
}

.hc-input,
.hc-select,
.hc-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #2c2c2c;
    color: #e1e3e6;
    font-size: 14px;
    transition: border-color 0.2s;
}

.hc-input:focus,
.hc-select:focus,
.hc-textarea:focus {
    outline: none;
    border-color: #528bff;
}

.hc-hint {
    font-size: 11px;
    color: #8f8f8f;
    margin-top: 4px;
}

.hc-divider {
    height: 1px;
    background: #2c2c2c;
    margin: 15px 0;
}

/* ========== АДМИН-БЭЙДЖИ ========== */
.hc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.hc-badge-success {
    background: #2e7d32;
    color: #e1e3e6;
}

.hc-badge-danger {
    background: #c62828;
    color: #e1e3e6;
}

/* ========== АДМИН-ЗАГРУЗЧИК ========== */
.hc-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #3a3a3a;
    border-top-color: #528bff;
    border-radius: 50%;
    animation: hc-spin 0.8s linear infinite;
    margin: 0 auto;
}

.hc-loader-text {
    text-align: center;
    color: #8f8f8f;
    margin-top: 8px;
}

@keyframes hc-spin {
    to { transform: rotate(360deg); }
}

/* ========== АДМИН-ПУСТОЕ СОСТОЯНИЕ ========== */
.hc-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8f8f8f;
}

.hc-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.hc-table-loading td {
    text-align: center;
    padding: 40px;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .hc-admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hc-admin-actions {
        justify-content: stretch;
    }
    
    .hc-admin-actions .hc-btn {
        flex: 1;
        justify-content: center;
    }
    
    .hc-table th,
    .hc-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .hc-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .hc-balance-container {
        flex-direction: column;
        align-items: center;
    }
    
    .hc-balance-item {
        width: 100%;
        max-width: 200px;
    }
}