/* =========================================
   SAAS / AUTH STYLES
   ========================================= */

/* User Section in Sidebar */
.user-profile-card {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    margin: -16px -16px 12px -16px;
    /* Bleed to edges */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: var(--primary-light);
}

.auth-btn.login {
    background: var(--primary);
    color: white;
}

.auth-btn.login:hover {
    background: var(--primary-dark);
}

/* User Info Connected */
.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.plan-badge {
    font-size: 10px;
    background: #cbd5e1;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 600;
}

.plan-badge.pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.user-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.user-actions .action-btn {
    flex: 1;
    font-size: 12px;
    padding: 6px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.user-actions .action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.user-actions .logout {
    flex: 0 0 32px;
    color: #ef4444;
}

/* Auth Modal Specifics */
.auth-content {
    max-width: 400px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.form-error {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 20px;
}

/* Cloud List */
.cloud-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.cloud-project-item:hover {
    background: #f8fafc;
}

.cloud-project-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
}

.cloud-project-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cloud-item-actions button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.cloud-item-actions button:hover {
    color: var(--primary);
}

.cloud-item-actions button.delete-btn:hover {
    color: #ef4444;
}