/**
 * File: frontend-account-widget.css
 * Status: Slim SaaS UI, No Blur, Box-Eye Icon support.
 */

/* 🎯 Header Trigger */
.daf-mini-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #2271b1;
    padding: 2px;
    background: #fff;
    transition: 0.2s;
    object-fit: cover;
}

/* 💎 Slim Premium Dropdown */
.daf-premium-widget-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -5px;
    width: 300px; /* Slimmer width */
    background: #ffffff !important;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); /* Clean crisp shadow */
    border: 1px solid #e2e8f0;
    padding: 0;
    display: none;
    z-index: 999999;
    overflow: hidden;
}

.daf-premium-widget-dropdown.active { display: block; animation: dafQuickPop 0.2s ease-out; }

@keyframes dafQuickPop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 👤 Identity Section */
.daf-widget-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fcfdfe;
    border-bottom: 1px solid #f1f5f9;
}

.daf-widget-avatar-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.daf-widget-img { width: 100%; height: 100%; object-fit: cover; }
.daf-widget-user-info h4 { margin: 0; font-size: 15px; color: #1e293b; font-weight: 700; }
.daf-widget-username { display: block; font-size: 12px; color: #64748b; margin-bottom: 3px; }
.daf-widget-badge {
    display: inline-block;
    padding: 1px 8px;
    background: #2271b1;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* 🛠️ Nav */
.daf-widget-menu-section { padding: 10px; }
.daf-widget-nav { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.daf-widget-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #475569 !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    transition: 0.2s;
}
.daf-widget-nav a:hover { background: #f1f5f9; color: #2271b1 !important; }
.daf-widget-nav a .dashicons { margin-right: 10px; font-size: 18px; color: #94a3b8; }

/* 🚪 Footer */
.daf-widget-footer { padding: 12px 20px; border-top: 1px solid #f1f5f9; background: #fff; }
.daf-widget-logout { display: flex; align-items: center; color: #e11d48 !important; text-decoration: none !important; font-weight: 700; font-size: 13px; }
.daf-widget-logout .dashicons { margin-right: 6px; font-size: 16px; }

/* 🔒 Guest Form & Eye Icon Fix */
.daf-widget-guest-header { padding: 25px 20px 15px; text-align: center; }
.daf-widget-guest-header h3 { margin: 0; font-size: 20px; color: #1e293b; font-weight: 800; }
.daf-widget-guest-header p { font-size: 13px; color: #64748b; margin: 4px 0 0; }

.daf-widget-login-form { padding: 0 20px 15px; }
.daf-form-field { margin-bottom: 12px; position: relative; }
.daf-form-field input {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 10px; background: #f8fafc; font-size: 14px;
    box-sizing: border-box; transition: 0.2s;
}
.daf-form-field input:focus { border-color: #2271b1; background: #fff; outline: none; }

/* 👁️ Eye Icon Inside Box */
.daf-toggle-pass {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #94a3b8; font-size: 18px; z-index: 10;
}
.daf-toggle-pass:hover { color: #2271b1; }

.daf-widget-btn-primary {
    width: 100%; padding: 14px; background: #2271b1 !important; color: #fff !important;
    border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2); transition: 0.2s;
}
.daf-widget-btn-primary:hover { background: #1a5a8e !important; transform: translateY(-1px); }

.daf-widget-guest-footer { padding: 15px 20px 25px; text-align: center; border-top: 1px solid #f1f5f9; font-size: 13px; }
.daf-widget-guest-footer a { color: #2271b1; font-weight: 700; text-decoration: none; }
.daf-forgot-link { display: block; margin-top: 8px; color: #94a3b8 !important; }