/* --- AUTH MODAL STYLES --- */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;     
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;    
    justify-content: center; 
    align-items: center;   
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);      
}

.auth-overlay.active {
    display: flex;
}

.auth-box {
    background: #ffffff;
    width: 400px;
    max-width: 90%;
    border-radius: 16px;
    padding: 28px;
    position: relative;    
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);   
    animation: authZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authZoom {
    from { opacity: 0; transform: scale(0.88) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close-btn {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: all 0.2s ease;
    z-index: 10;
}
.auth-close-btn:hover { background-color: #d9383a; transform: scale(1.08); }

.auth-header { text-align: left; margin-bottom: 20px;}
.auth-header h3 { margin: 0 0 6px 0; color: #111827; font-size: 17px; }
.auth-header p { margin: 0; color: #32465a; font-size: 14px; }

/* Khối nút Google */
.auth-google-wrapper {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* Thẻ user inside Modal khi đã login Google */
.auth-user-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 16px;
}
.auth-user-welcome img { width: 36px; height: 36px; border-radius: 50%; }
.auth-user-welcome span { font-weight: 600; font-size: 14px; color: #32465a; }

.auth-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-form-group label { font-size: 14px; color: #3f5368; }

.auth-input {
    width: 100%; padding: 10px 14px;
    border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
    box-sizing: border-box; outline: none;
}
.auth-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent); }

.auth-submit-btn {
    width: 100%; padding: 11px;
    background-color:  var(--primary-color); color: #fff;
    border: none; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.auth-submit-btn:hover { background-color: var(--primary-color); }

.auth-logout-btn {
    width: 100%; padding: 8px; margin-top: 15px;
    background: transparent; color: var(--primary-color);
    border: 1px solid var(--primary-color); border-radius: 8px;
    font-size: 14px; cursor: pointer;
}

/* Sidebar user UI */
.sidebar-user-card {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 10px; cursor: pointer;
    transition: background 0.2s ease;
}
.sidebar-user-card:hover { background-color: #f0f0f0; }
.sidebar-user-avatar { border-radius: 50%; object-fit: cover; }
.sidebar-user-email { font-size: 13px; font-weight: 500; color: #3b4e61; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

.thongtin{
    color: #3f5368;
    font-size: 14px;
}

/* Khối chứa 3 thẻ - xếp dọc */
.auth-google-wrapper {
    display: flex;
    flex-direction: column; /* Đổi sang hàng dọc */
    align-items: center;
    width: 100%;
    margin: 15px 0;
}

.auth-features-container {
    width: 100%;            /* Cho khối tính năng tràn đủ chiều rộng modal */
    box-sizing: border-box;
    background: #f8f9fa;    
    border-radius: 12px;
    padding: 14px;
    margin: 0px 0 20px 0;
}


.auth-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-card {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    gap: 14px;   
}

.suggestion-card:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateX(3px); /* Nhích nhẹ sang phải khi hover */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Định dạng Icon SVG */
.suggestion-card svg {
    color: var(--primary-color);
    flex-shrink: 0;           /* Giữ nguyên kích thước icon không bị co lại */
    margin-bottom: 0;         /* Xóa margin cũ */
    transition: transform 0.2s ease;
}

.suggestion-card:hover svg {
    transform: scale(1.1);
}

/* Khung tròn chứa Icon */
.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    color: var(--primary-color);
}

/* Phần chữ */
.card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
}

.card-desc {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

/* B. TABLET / DI ĐỘNG LỚN (Max-width: 735px) */
@media screen and (max-width: 735px) {

    .auth-box {      
        width: 85%; 
        max-width: 100%;       
    }

}

/* C. DI ĐỘNG NHỎ (Max-width: 480px) */
@media screen and (max-width: 480px) {
    
    .auth-features-container {
        display: none;
    }
    
}



