/* Profile and Login Page Styles */

/* Enable scrolling on login page body - override fe-menu.css */
body.sagescreen-login {
    overflow: auto !important;
}

.profile-wrapper,
.login-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Reduce top margin on login page */
.login-wrapper > .flex {
    padding-top: 1rem; /* Reduced from py-8 (2rem) to 1rem */
    padding-bottom: 2rem;
}

/* Profile Header Gradient */
.profile-header {
    background: linear-gradient(135deg, var(--ss-color-brand) 0%, var(--ss-color-brand-hover) 100%);
}

/* Profile Stats Cards - No hover effect per design tokens */

/* Login Form Styles */
.login-wrapper input[type="text"],
.login-wrapper input[type="email"],
.login-wrapper input[type="password"] {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-wrapper input[type="text"]:focus,
.login-wrapper input[type="email"]:focus,
.login-wrapper input[type="password"]:focus {
    border-color: var(--ss-color-brand);
    box-shadow: 0 0 0 3px rgba(106, 153, 106, 0.1);
}

/* Profile Edit Mode */
#profile-edit-mode input,
#profile-edit-mode textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#profile-edit-mode input:focus,
#profile-edit-mode textarea:focus {
    border-color: var(--ss-color-brand);
    box-shadow: 0 0 0 3px rgba(106, 153, 106, 0.1);
}



/* WooCommerce Tables */
.profile-wrapper table {
    font-size: var(--ss-font-size-website);
}

.profile-wrapper table th {
    font-weight: var(--ss-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-wrapper table td,
.profile-wrapper table th {
    padding: 12px 16px;
}

.profile-wrapper table tbody tr:hover {
    background-color: var(--ss-color-bg-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-wrapper .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Profile Content Styles - Extracted from profile_content.tpl.php */

/* Email Preferences Section */
.ss_email_prefs_section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.ss_email_pref_enabled {
    color: #16a34a;
}

.ss_email_pref_disabled {
    color: #6b7280;
}

/* Profile Edit Mode */
.ss_profile_edit_mode {
    padding-top: 36px;
    max-width: 800px;
}

/* Section Headers */
.ss_section_heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #374151;
}

/* Form Fields */
.ss_field_label_notop {
    margin-top: 0;
}

.ss_input_width_300 {
    width: 300px;
}

.ss_input_width_616 {
    width: 616px;
}

/* Links */
.ss_link_blue {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

/* Section Divider */
.ss_section_divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Account Security Links */
.ss_account_security_links {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

/* Email Preferences List */
.ss_email_prefs_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ss_email_pref_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ss_email_pref_item_last {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.ss_email_pref_title {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
}

.ss_email_pref_desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.ss_toggle_disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Avatar Section */
.ss_avatar_options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.ss_avatar_option_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ss_radio_auto_width {
    width: auto;
}

.ss_avatar_option_text {
    font-size: 14px;
    color: #374151;
}

.ss_avatar_preview {
    width: 24px;
    height: 24px;
    margin-left: 8px;
}

.ss_gravatar_link {
    font-size: 12px;
    color: #3b82f6;
    margin-left: 8px;
}

.ss_avatar_upload_section {
    margin-left: 28px;
    margin-top: 8px;
}

.ss_file_input {
    font-size: 14px;
}

.ss_help_text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Onboarding Reset Section */
.ss_onboarding_options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ss_checkbox_auto_width {
    width: auto;
    accent-color: #609660;
}

/* Form Actions */
.ss_cancel_link {
    color: #6b7280;
    text-decoration: none;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
}

.ss_back_link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.ss_form_actions_spacing {
    margin-top: 2rem;
}

/* Profile Header Partial Styles - Extracted from profile_header.tpl.php */

/* Council Layout - Logo Container */
.ss-profile-header-council-wrapper {
    margin-top: -40px;
    padding-bottom: 2rem;
    position: relative;
}

.ss-profile-header-logo-container {
    width: 300px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.ss-profile-header-logo {
    max-width: 250px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ss-profile-header-council-title-wrapper {
    padding-bottom: 1rem;
}

.ss-profile-header-council-title-inner {
    margin-top: 48px;
}

/* Profile Layout - Avatar Container */
.ss-profile-header-profile-wrapper {
    margin-top: -50px;
    position: relative;
}

.ss-profile-header-avatar-container {
    margin-top: -30px;
    z-index: 11;
}

.ss-profile-header-title-wrapper {
    margin-top: 24px;
}

