/* Authentication UI Styles */

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #667eea;
}

.user-name {
    font-size: 14px;
    color: #333;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Scan limit warning */
.scan-limit-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scan-limit-warning .icon {
    font-size: 24px;
}

.scan-limit-warning .message {
    flex: 1;
}

.scan-limit-warning .upgrade-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.scan-limit-warning .upgrade-btn:hover {
    background: #5568d3;
}

/* Usage stats display */
.usage-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.usage-stats h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Tier badges */
.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.tier-free {
    background: #e3f2fd;
    color: #1976d2;
}

.tier-premium {
    background: #fff3e0;
    color: #f57c00;
}

.tier-enterprise {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Login required overlay */
.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-required-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
}

.login-required-modal h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.login-required-modal p {
    color: #666;
    margin: 0 0 25px 0;
}

.login-required-modal .btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.login-required-modal .btn-primary:hover {
    background: #5568d3;
}

/* Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-dropdown {
        right: -10px;
    }
}
