/* GiftManager - Main CSS */
/* Material Design 3 inspired */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Noël - UX Spec */
    --primary: #1B5E20;
    --primary-dark: #145218;
    --secondary: #C62828;
    --accent: #F9A825;
    --text-primary: #424242;
    --text-secondary: #666;
    --background: #ffffff;
    --surface: #ffffff;
    --error: #C62828;
    --error-light: #fee2e2;
    --success: #1B5E20;
    --border: #ddd;
    --shadow: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--background);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 24px;
}

/* Responsive */
@media (min-width: 768px) {
    .main-container {
        padding-top: 16px;
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
}

.toast-success {
    background: #23ad16;
}

.toast-error {
    background: #ef4444;
}

.toast-info {
    background: #3b82f6;
}

/* Header */
.secondary-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.secondary-page-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-back:hover {
    background-color: rgba(27, 94, 32, 0.1);
}

.btn-back svg {
    flex-shrink: 0;
}

/* FAB Button */
.fab-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary, #1B5E20);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
}

.fab-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(27, 94, 32, 0.4);
}

.fab-button:active {
    transform: scale(0.98);
}

/* Responsive */
@media (min-width: 768px) {
    .secondary-page-header {
        position: static;
        border-radius: 12px;
        margin: 0 16px 16px;
        border: 1px solid var(--border);
    }
}

@media (max-width: 480px) {
    .fab-button {
        bottom: 16px;
        right: 16px;
    }
}