/* ========================================
   CABINET LAYOUT STYLES
   Базовая структура страниц кабинета
   ======================================== */

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

.cabinet {
    display: block;
    margin: 52px 0;
}

.cabinet .container {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: space-between;
}

.cabinet .container .col,
.cabinet .container .col-full {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cabinet .container .col:last-child {
    max-width: 480px;
}

/* === CARDS === */

.cabinet .container .cabinet-form,
.cabinet .container .info-card {
    padding: 32px;
    gap: 24px;
}

.cabinet .container .cabinet-form h3,
.cabinet .container .info-card h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: white;
    max-width: 296px;
}

/* === PROFILE HEADER === */

.profile-header {
    display: flex;
    color: white;
    justify-content: space-between;
}

.profile-header .left {
    display: flex;
    gap: 12px;
}

.profile-header .left .avatar {
    display: block;
    position: relative;
    overflow: hidden;
    width: 52px;
    height: 52px;
    background-color: #1A232B;
    border-radius: 50%;
}

.profile-header .left .avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.profile-header .left .info {
    display: flex;
    flex-direction: column;
}

.profile-header .left .info span:first-child {
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
}

.profile-header .left .info span:last-child {
    font-weight: 400;
    text-align: center;
    color: var(--grey-text);
}

/* === FORM MESSAGES === */

.form-message {
    font-size: 14px;
    margin-right: 16px;
}

.form-message.success {
    color: #25E66C;
}

.form-message.error {
    color: #F44747;
}

/* === NO TRANSACTIONS STATE === */

.list .no-transactions {
    background: transparent;
    justify-content: center;
    opacity: 0.6;
}

.list .no-transactions .left {
    justify-content: center;
}

.list .no-transactions .icon {
    display: none;
}

.list .no-filter-results {
    background: transparent;
}

/* === SUPPORT INFO === */

.support-info {
    display: flex;
    flex-direction: column;
    padding: 0 32px;
    align-items: center;
}

.support-icon {
    width: 20px;
    height: 20px;
    background-image: url("../images/question.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.support-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--grey-text);
}


/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
    .cabinet {
        margin: 40px 0;
    }
    
    .cabinet .container {
        gap: 28px;
    }
    
    .cabinet .container .col,
    .cabinet .container .col-full {
        gap: 28px;
    }
    
    .cabinet .container .col:last-child {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cabinet {
        margin: 32px 0;
    }
    
    .cabinet .container {
        flex-direction: column;
        gap: 24px;
    }
    
    .cabinet .container .col,
    .cabinet .container .col-full {
        gap: 24px;
    }
    
    /* Cards */
    .cabinet .container .cabinet-form,
    .cabinet .container .info-card {
        padding: 28px 24px;
        gap: 20px;
    }
    
    .cabinet .container .cabinet-form h3,
    .cabinet .container .info-card h3 {
        font-size: 22px;
        line-height: 30px;
        max-width: 100%;
    }
    
    /* Profile header */
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .profile-header .left {
        gap: 10px;
    }
    
    .profile-header .left .avatar {
        width: 48px;
        height: 48px;
    }
    
    .profile-header .left .info span:first-child {
        font-size: 22px;
        line-height: 30px;
    }
    
    .profile-header .left .info span:last-child {
        font-size: 14px;
    }
    
    .profile-header .right {
        width: 100%;
    }
    
    .profile-header .right .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Form messages */
    .form-message {
        font-size: 13px;
        margin-right: 12px;
    }
    
    /* Support info */
    .support-info {
        padding: 0 24px;
    }
    
    .support-text {
        font-size: 13px;
        line-height: 19px;
    }
}

@media (max-width: 520px) {
    .cabinet {
        margin: 24px 0;
    }
    
    .cabinet .container {
        gap: 20px;
    }
    
    .cabinet .container .col,
    .cabinet .container .col-full {
        gap: 20px;
    }
    
    /* Cards */
    .cabinet .container .cabinet-form,
    .cabinet .container .info-card {
        padding: 24px 20px;
        gap: 18px;
        border-radius: 20px;
    }
    
    .cabinet .container .cabinet-form h3,
    .cabinet .container .info-card h3 {
        font-size: 20px;
        line-height: 28px;
    }
    
    /* Profile header */
    .profile-header {
        gap: 14px;
    }
    
    .profile-header .left {
        gap: 10px;
    }
    
    .profile-header .left .avatar {
        width: 44px;
        height: 44px;
    }
    
    .profile-header .left .info span:first-child {
        font-size: 20px;
        line-height: 28px;
    }
    
    .profile-header .left .info span:last-child {
        font-size: 13px;
    }
    
    /* Form messages */
    .form-message {
        font-size: 12px;
        margin-right: 10px;
        display: block;
        margin-bottom: 8px;
    }
    
    /* Support info */
    .support-info {
        padding: 0 20px;
    }
    
    .support-text {
        font-size: 12px;
        line-height: 18px;
        text-align: center;
    }
}
