/* mypro · driver - styles */
:root {
    --mp-primary: #FFB800;
    --mp-primary-dark: #EAB308;
    --mp-bg: #f5f5f5;
}
* { -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body { padding-bottom: env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); }

/* Buttons */
.btn-primary {
    background: var(--mp-primary);
    color: #fff;
    padding: 0.95rem 1.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(255, 184, 0, 0.6);
    transition: all 0.18s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-primary:hover:not(:disabled) { background: var(--mp-primary-dark); }
.btn-primary:disabled { background: #d1d5db; cursor: not-allowed; box-shadow: none; }
.btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.85rem 1.4rem;
    border-radius: 0.85rem;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
}
.btn-secondary:hover { background: #e5e7eb; }
.btn-danger {
    background: #ef4444;
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-danger:hover { background: #dc2626; }
.btn-ghost {
    background: transparent;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
}

/* Cards */
.card {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.7rem;
    font-size: 1rem;
    background: #fff;
    transition: all 0.18s;
}
.input-field:focus {
    border-color: var(--mp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 0 max(0.5rem, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 50;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.04);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s;
    background: none;
    border: none;
}
.nav-item i { font-size: 1.2rem; margin-bottom: 0.18rem; }
.nav-item.active { color: var(--mp-primary); }

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.status-pill.upcoming { background: #fef3c7; color: #92400e; }
.status-pill.today    { background: #dcfce7; color: #166534; }
.status-pill.done     { background: #e0e7ff; color: #3730a3; }
.status-pill.cancel   { background: #fee2e2; color: #991b1b; }

/* Toast */
.toast {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    padding: 1rem 1.2rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1100;
    backdrop-filter: blur(15px);
    box-shadow: 0 18px 24px -12px rgba(0, 0, 0, 0.25);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
}
.toast.success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.9)); }
.toast.error   { background: linear-gradient(135deg, rgba(239, 68, 68, 0.92),  rgba(220, 38, 38, 0.9)); }
.toast.info    { background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.9)); }
.toast.slide-out { animation: toastOut 0.3s ease-in forwards; }

@keyframes toastIn {
    0% { transform: translateY(-30px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-20px) scale(0.95); opacity: 0; }
}

/* Spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--mp-primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.45s ease-out forwards; }
.stagger > * { opacity: 0; animation: fadeInUp 0.45s ease-out forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.2s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }

/* Code-input (6 chiffres / token) */
.code-inputs { display: flex; gap: 0.4rem; justify-content: center; margin: 1rem 0; }
.code-digit {
    width: 2.7rem; height: 3.2rem; text-align: center;
    border: 2px solid #e5e7eb; border-radius: 0.6rem;
    font-size: 1.4rem; font-weight: bold;
    transition: all 0.15s ease;
}
.code-digit:focus {
    border-color: var(--mp-primary); outline: none;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.18);
}

/* Layout */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.app-header {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6rem;
}
