/* Ensure spacing between cart icon and login/profile area in navbar */
.nav-links .cart-link {
    margin-right: 20px;
}
 
/* Profile menu (logged-in state in navbar corner) */
.profile-menu {
    position: relative;
    display: inline-block;
}
 
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: inherit;
    padding: 6px 10px;
    border-radius: 20px;
}
 
.profile-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
 
.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00b4d8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}
 
.profile-name {
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
 
.profile-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 12px;
    display: none;
    z-index: 999;
}
 
.profile-dropdown.show {
    display: block;
}
 
.profile-info {
    padding: 6px 8px 12px 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
 
.profile-info strong {
    display: block;
    font-size: 15px;
    color: #222;
}
 
.profile-info small {
    color: #777;
    font-size: 12px;
}
 
.profile-dropdown a {
    display: block;
    padding: 8px;
    border-radius: 6px;
    color: #d9534f;
    text-decoration: none;
    font-weight: 600;
}
 
.profile-dropdown a:hover {
    background: #f7f7f7;
}
 
/* ================================================================
   FINAL NAVBAR LAYOUT OVERRIDE
   style.css and navbar.css both redefine .nav-links / .user-actions /
   .cart-link multiple times with conflicting gap/margin values.
   This block is loaded last and uses !important so the navbar layout
   is stable regardless of those conflicting rules.
   ================================================================ */
.navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}
 
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
}
 
.user-actions {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: 20px !important;
}
.cart-link {
    margin-right: 20px !important;
}

 ================================================================ */
 
.form-card {
    max-width: 400px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
 
.form-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    color: #12263a;
    text-align: center;
}
 
.form-card .subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}
 
.form-group {
    margin-bottom: 18px;
}
 
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
 
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
 
.form-group input:focus {
    outline: none;
    border-color: #0e8ba8;
    box-shadow: 0 0 0 3px rgba(14, 139, 168, 0.15);
}
 
.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0e8ba8, #0a5f7a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
 
.btn-primary:hover {
    opacity: 0.9;
}
 
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
 
.switch-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: #6b7280;
}
 
.switch-link a {
    color: #0e8ba8;
    font-weight: 600;
    text-decoration: none;
}
 
.switch-link a:hover {
    text-decoration: underline;
}
 
#message .error-msg {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
 
#message .success-msg {
    background: #dcfce7;
    color: #15803d;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}
 
@media (max-width: 480px) {
    .form-card {
        margin: 30px 16px;
        padding: 28px 22px;
    }
}