/* ========================================
   DASHBOARD STYLES
   Стили главной страницы кабинета
   ======================================== */

/* === MAIN CONTAINER === */

.dashboard {
    display: block;
    margin: 32px 0;
}

.dashboard .container {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
}

.dashboard-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 880px;
}

.dashboard-right {
    width: 464px;
    flex-shrink: 0;
    display: flex;
}

/* === DASHBOARD HEADER === */

.dashboard-header {
    border-radius: 24px;
    padding: 16px 20px !important;
    background: rgba(15, 21, 26, 0.8);
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px !important;
}

.dashboard-actions-left,
.dashboard-actions-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* === DASHBOARD BUTTONS === */

.btn-dashboard-glass {
    position: relative;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    height: 48px;
    border-radius: 100px;
    padding: 12px 20px 12px 44px !important;
    background-color: rgba(41, 96, 135, 0.4) !important;
    color: white;
    border: none;
    border-top: solid 1px rgba(255, 255, 255, 0.1);
    border-bottom: solid 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    box-sizing: border-box;
}

/* Icon via pseudo-element to avoid background conflicts */
.btn-dashboard-glass::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn-dashboard-glass:hover {
    background-color: rgba(41, 96, 135, 0.55);
    border-top-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Button icons */
.btn-dashboard-exchange::before {
    background-image: url("../images/exchange.svg");
}

.btn-dashboard-wallet::before {
    background-image: url("../images/add_wallet.svg");
}

.btn-dashboard-exchange:hover,
.btn-dashboard-wallet:hover {
    background-color: rgba(41, 96, 135, 0.55) !important;
}

/* Coming Soon buttons */
.btn-dashboard-remit,
.btn-dashboard-template {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background-color: rgba(90, 90, 103, 0.2) !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 20px 20px !important;
}

/* Disable ::before pseudo-element for coming soon buttons */
.btn-dashboard-remit::before,
.btn-dashboard-template::before {
    display: none;
}

.btn-dashboard-remit {
    background-image: url("../images/remit.svg") !important;
}

.btn-dashboard-template {
    background-image: url("../images/template.svg") !important;
}

.btn-dashboard-remit::after,
.btn-dashboard-template::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: url("../images/clock.png") center / contain no-repeat;
    z-index: 10;
    pointer-events: none;
}

/* === TRANSACTIONS BLOCK === */

.dashboard-transactions {
    border-radius: 24px;
    padding: 16px 20px;
    background: rgba(15, 21, 26, 0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transactions-header h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: white;
    margin: 0;
}

/* Show all link */
.show-all-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    display: inline-block;
    padding: 12px 20px;
    border-radius: 100px;
    background: rgba(41, 96, 135, 0.4);
    color: white;
    text-decoration: none;
    border-top: solid 1px rgba(255, 255, 255, 0.1);
    border-bottom: solid 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.show-all-link:hover {
    background: rgba(41, 96, 135, 0.55);
    border-top-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* === RESPONSIVE === */

@media (max-width: 1200px) {
    .dashboard .container {
        flex-direction: column;
    }
    
    .dashboard-left {
        max-width: 100%;
    }
    
    .dashboard-right {
        width: 100%;
    }
}
