/* Profile Page Styles - Glassmorphie Liquid Design */

#profile-page {
    padding: 0;
}

/* Profile Header Card */
.profile-card {
    background: transparent;
    border: none;
    padding: 0 4px 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 136, 204, 0.3);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.2);
}

.profile-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #00a0e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-user-id {
    opacity: 0.7;
}

/* Vendor Badge - Removed */

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Vendor Menu - Glassmorphie Style */
.vendor-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding: 0 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.05) 0%, rgba(0, 160, 227, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:active:not(.disabled)::before {
    opacity: 1;
}

.menu-item:active:not(.disabled) {
    border-color: rgba(0, 136, 204, 0.3);
    transform: scale(0.97);
    box-shadow: 0 8px 16px rgba(0, 136, 204, 0.15);
    -webkit-tap-highlight-color: transparent;
}

.menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.menu-item .icon {
    font-size: 22px;
    width: 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.menu-item .label {
    flex: 1;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.menu-item .badge {
    background: #0088cc;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.menu-item .arrow {
    color: var(--text-secondary);
    font-size: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.menu-item:active:not(.disabled) .arrow {
    transform: translateX(4px);
}

.menu-item.highlight {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 160, 227, 0.1) 100%);
    border-color: rgba(0, 136, 204, 0.4);
}

.menu-item.highlight .label {
    color: #00a0e3;
    font-weight: 600;
}

.menu-item.highlight .icon {
    filter: drop-shadow(0 0 8px rgba(0, 136, 204, 0.4));
}

/* Vendor Settings Page */
.vendor-settings {
    margin: 0;
    padding: 0 4px;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-back {
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-back:active {
    background: var(--glass-lighter);
    border-color: rgba(0, 136, 204, 0.3);
    transform: scale(0.95);
}

.settings-header h2 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Settings Form - Glassmorphie */
.settings-form {
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        0 8px 32px var(--glass-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.settings-form .form-group {
    margin-bottom: 16px;
}

.settings-form .form-group:last-of-type {
    margin-bottom: 16px;
}

.settings-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.settings-form input[type="text"],
.settings-form input[type="url"],
.settings-form select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.settings-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.settings-form select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a0e3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 44px;
}

.settings-form select option {
    background: #232b42;
    color: #ffffff;
    padding: 12px;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.8;
}

/* Logo Upload - Enhanced Glassmorphie */
.logo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-preview {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(0, 136, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.logo-preview:active {
    border-color: rgba(0, 136, 204, 0.5);
    background: rgba(0, 136, 204, 0.05);
    transform: scale(0.96);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-logo {
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
    padding: 8px;
    opacity: 0.6;
}

.file-input {
    display: none;
}

.btn-upload {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0088cc 0%, #00a0e3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.btn-upload:active {
    transform: scale(0.96);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

/* Submit Button - Glassmorphie Enhanced */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0088cc 0%, #00a0e3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.5);
}

.btn-submit:active:not(:disabled)::before {
    left: 100%;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages - Enhanced */
.form-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

/* Error Message */
.error-message {
    margin: 8px 4px;
    padding: 12px;
    background: rgba(244, 67, 54, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    color: #F44336;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

/* Inscription Instructions */
.inscription-instructions {
    padding: 16px 0;
}

.inscription-instructions p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
