/*
    MyBank - Custom Stylesheet
    Version: 1.6 (Single Line Balance)
*/

/*
====================================================
1. БАЗОВЫЕ СТИЛИ И ТИПОГРАФИКА
====================================================
*/
body {
    font-family: 'Outfit', sans-serif;
    background-color: #030B15;
    color: #A4B4C3;
    font-size: 16px;
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    font-weight: 600;
}

a {
    color: #00C4F4;
    text-decoration: none;
    transition: all 0.3s ease-out 0s;
}

a:hover {
    color: #fff;
}

hr {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.text-muted {
    color: #6c757d !important;
}

/*
====================================================
2. HEADER
====================================================
*/
.menu-area {
    background: #030B15;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 99;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF !important;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.navbar-text {
    color: #A4B4C3;
}

.btn-logout {
    border: 1px solid #A4B4C3;
    color: #A4B4C3;
    padding: .375rem 1rem;
    background-color: transparent;
    transition: all 0.3s ease-out 0s;
}
.btn-logout:hover {
    background-color: rgba(0, 196, 244, 0.1);
    border-color: #00C4F4;
    color: #00C4F4;
}

/*
====================================================
3. ОСНОВНОЙ КОНТЕНТ (общие стили)
====================================================
*/
.dashboard-container {
    max-width: 700px;
    margin: 5rem auto;
}

.dashboard-container .display-5 {
    font-weight: 700;
}

.dashboard-container .lead {
    color: #A4B4C3;
}

/*
====================================================
4. КАСТОМНЫЕ КНОПКИ
====================================================
*/
.btn-custom {
    background: #040E18;
    border: 2px solid transparent;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 1rem 1.5rem;
    border-radius: 70px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease 0s;
}

.btn-custom::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: -2px;
    background: linear-gradient(90deg, #00C4F4 0%, rgba(4, 12, 21, 1) 50%, #00C4F4 100%);
    border-radius: 70px;
    z-index: -1;
    transition: all 0.4s ease 0s;
}

.btn-custom:hover {
    color: #00C4F4;
    background: #040E18;
    transform: scale(1.03);
}

.btn-custom.disabled,
.btn-custom:disabled {
    opacity: 0.4;
    pointer-events: none;
    background: #121A23;
    transform: none;
}
.btn-custom.disabled::after,
.btn-custom:disabled::after {
    background: #121A23;
}

/*
====================================================
5. СТРАНИЦА АВТОРИЗАЦИИ (Login/Registration)
====================================================
*/
.auth-page-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    background-color: rgba(4, 14, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.form-signin .logo-img {
    max-height: 50px;
    width: auto;
}

.form-group .form-label {
    color: #A4B4C3;
    margin-bottom: .5rem;
    font-size: 0.9rem;
}

.form-group .form-control,
.form-group .form-select {
    background-color: #0B1D33;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    height: 50px;
}
.form-group .form-control:focus,
.form-group .form-select:focus {
    background-color: #040E18;
    border-color: #00C4F4;
    box-shadow: 0 0 0 .25rem rgba(0, 196, 244, .25);
    color: #fff;
}

.form-group .form-control::placeholder {
    color: #6c757d;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23A4B4C3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-select option {
    background-color: #0B1D33;
    color: #fff;
}
.form-select option:disabled {
    color: #6c757d;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0B1D33 inset !important;
    -webkit-text-fill-color: #fff !important;
}

.form-signin .checkbox label {
    color: #A4B4C3;
}
.form-signin .checkbox input[type="checkbox"] {
    border-radius: 4px;
    border: 1px solid #A4B4C3;
    background-color: transparent;
}
.form-signin .checkbox input[type="checkbox"]:checked {
    background-color: #00C4F4;
    border-color: #00C4F4;
}

.form-signin .btn-custom.w-100 {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1.05rem;
}

.form-signin a {
    font-weight: 500;
}

.alert-danger-custom {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #f8d7da;
    border-radius: 8px;
}
.alert-success-custom {
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.5);
    color: #d1e7dd;
    border-radius: 8px;
}
.alert-warning-custom {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #fff3cd;
    border-radius: 8px;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/*
====================================================
6. СТРАНИЦА ОБМЕНА (ACCOUNT)
====================================================
*/
.exchange-container {
    max-width: 600px; /* Компактное окно */
    margin: auto;
}

.account-card {
    background-color: #040E18;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
}

.balance-info .balance-label {
    font-size: 1rem;
    color: #A4B4C3;
    margin-bottom: 1rem;
    text-align: center;
}

.balance-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap; /* Для мобильных устройств */
    gap: 0.5rem 1rem;
    text-align: center;
}

.balance-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.balance-value.usd {
    color: #FFFFFF;
}

.balance-value.btc {
    color: #f7931a; /* BTC Orange */
}

.balance-separator {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(164, 180, 195, 0.5); /* Полупрозрачный разделитель */
}

.balance-value .currency-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #A4B4C3;
    margin-left: 0.25rem;
}

.account-card .form-label {
    font-weight: 500;
    color: #A4B4C3;
    margin-bottom: .5rem;
}

.conversion-result-box {
    background-color: #030B15;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #A4B4C3;
    transition: all 0.3s ease;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.conversion-result-box.active {
    background-color: #0B1D33;
    border-color: #00C4F4;
    border-style: solid;
}

.conversion-result-box .conversion-label {
    display: block;
    font-size: 0.9rem;
}
.conversion-result-box .conversion-amount {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2.25rem;
    color: #fff;
    line-height: 1.2;
}
.conversion-result-box .conversion-amount small {
    font-size: 60%;
}