.settings-content {
    flex: 1;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.settings-content h1 {
    color: #2c3e50;
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.settings-section:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.settings-section h2 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar-preview {
    flex-shrink: 0;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    border: 3px solid #ddd;
}

.avatar-upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#avatar-input {
    padding: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

.error-message {
    display: block;
    margin-top: 5px;
    color: #d32f2f;
    font-size: 13px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* User Preferences Section */
.preferences-subsection-title {
    color: #2c3e50;
    font-size: 17px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #9e9e9e;
    color: white;
}

.btn-secondary:hover {
    background-color: #757575;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert p {
    margin: 0;
}

/* Bookmarks Section */
.bookmarks-list {
    margin-top: 15px;
}

.no-bookmarks {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-bookmarks p {
    margin-bottom: 20px;
    font-size: 16px;
}

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.bookmark-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.bookmark-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.bookmark-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.bookmark-date {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.bookmark-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Trips Section */
.trips-list {
    margin-top: 15px;
}

.no-trips {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-trips p {
    margin-bottom: 20px;
    font-size: 16px;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

.trip-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.trip-card:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
    border-color: #667eea;
}

.trip-name-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.trip-info h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
}

.edit-name-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.edit-name-icon:hover {
    opacity: 1;
    background: #f0f0f0;
    transform: scale(1.1);
}

.trip-details {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.trip-meta {
    font-size: 13px;
    color: #888;
    margin: 10px 0;
}

.trip-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button styles */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #b21f2d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8e 100%);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4);
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .settings-content {
        padding: 16px;
        min-height: calc(100vh - 56px);
    }

    .settings-content h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .settings-section {
        padding: 20px 16px;
        /* Disable hover lift on touch devices */
        transform: none !important;
    }

    .settings-section h2 {
        font-size: 18px;
    }

    .avatar-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .bookmarks-grid {
        grid-template-columns: 1fr;
    }

    .trips-grid {
        grid-template-columns: 1fr;
    }

    /* Trip action buttons: wrap tightly, no forced column */
    .trip-actions {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .settings-content {
        padding: 12px;
    }

    .settings-section {
        padding: 16px 12px;
    }
}

