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

body {
    background: #0a0a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

.phone {
    width: 390px;
    height: 844px;
    background: #0d0d2b;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

/* VIEWS SYSTEM */
.views-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.view {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: none;
}

.view::-webkit-scrollbar { display: none; }

.view.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 24px 16px;
}

.header-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 16px;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.2);
}

.location {
    text-align: center;
}

.location h2 {
    font-size: 18px;
    font-weight: 600;
}

.location p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* MAIN CARD */
.main-card {
    margin: 0 16px;
    background: linear-gradient(145deg, #1e3a8a, #2563eb, #3b82f6);
    border-radius: 28px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    min-height: 420px;
}

.main-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.main-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -20px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.weather-condition {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.date-badge {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

.card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.temp-block .temp {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.temp-block .temp-range {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.weather-icon-main {
    font-size: 90px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* STATS ROW */
.stats-row {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    font-size: 18px;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
}

.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

/* AGRO SCORES */
.agro-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.score-badge {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.score-circle.green { background: #22c55e; color: #fff; }
.score-circle.yellow { background: #eab308; color: #fff; }
.score-circle.red { background: #ef4444; color: #fff; }
.score-circle.blue { background: #38bdf8; color: #fff; }

.score-info .score-name {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

.score-info .score-status {
    font-size: 11px;
    font-weight: 600;
}

/* SECTION TITLE */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.section-link {
    font-size: 12px;
    color: #60a5fa;
    cursor: pointer;
    text-decoration: none;
}

/* HOURLY SCROLL */
.hourly-scroll {
    display: flex;
    gap: 10px;
    padding: 0 24px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    min-height: 100px;

}

.hourly-scroll::-webkit-scrollbar { display: none; }

.hour-card {
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 64px;
}

.hour-card:hover {
    background: rgba(255,255,255,0.12);
}

.hour-card.active {
    background: linear-gradient(145deg, #2563eb, #3b82f6);
    border-color: rgba(255,255,255,0.3);
}

.hour-time {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.hour-card.active .hour-time {
    color: rgba(255,255,255,0.9);
}

.hour-icon { font-size: 22px; }

.hour-temp {
    font-size: 13px;
    font-weight: 600;
}

/* WEEKLY FORECAST */
.weekly-section {
    padding: 0 16px;
}

.day-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.day-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.day-card.active {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.day-name {
    font-size: 14px;
    font-weight: 600;
    width: 80px;
}

.day-condition {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    flex: 1;
    padding-left: 8px;
}

.day-icon { font-size: 24px; }

.day-temps {
    text-align: right;
}

.day-high {
    font-size: 14px;
    font-weight: 700;
}

.day-low {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* AGRO ALERTS */
.alerts-section {
    padding: 0 16px 16px;
}

.alert-card {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-card.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-card.warning {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.alert-card.danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content .alert-title {
    font-size: 13px;
    font-weight: 600;
}

.alert-content .alert-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.alert-score {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.alert-score.green { color: #22c55e; }
.alert-score.yellow { color: #eab308; }
.alert-score.red { color: #ef4444; }

/* BOTTOM NAV */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 16px 24px 32px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.nav-item.active {
    opacity: 1;
}

.nav-item .nav-icon { font-size: 20px; }
.nav-item .nav-label { font-size: 10px; color: rgba(255,255,255,0.7); }
.nav-item.active .nav-label { color: #60a5fa; }

/* TRANSITION ANIMATION */
.fade-update {
    animation: fadeUpdate 0.4s ease;
}

@keyframes fadeUpdate {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* Gradient par condition */
.gradient-sunny { background: linear-gradient(145deg, #92400e, #d97706, #f59e0b); }
.gradient-cloudy { background: linear-gradient(145deg, #1e3a8a, #2563eb, #3b82f6); }
.gradient-rainy { background: linear-gradient(145deg, #1e2a4a, #374151, #4b5563); }
.gradient-storm { background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460); }
.gradient-foggy { background: linear-gradient(145deg, #374151, #6b7280, #9ca3af); }
.gradient-windy { background: linear-gradient(145deg, #1e3a8a, #1d4ed8, #2563eb); }
.gradient-clear-night { background: linear-gradient(145deg, #0f172a, #1e1b4b, #312e81); }

/* Scrollbar global */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* ========================
   ONBOARDING SCREEN
   ======================== */

.onboarding-screen {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: linear-gradient(160deg, #0a0f2e 0%, #0d1b3e 40%, #0a1628 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 28px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease;
}

.onboarding-screen.slide-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.onboarding-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onboarding-logo {
    font-size: 64px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.onboarding-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.onboarding-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 40px;
}

.onboarding-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 0 16px;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 6px;
}

.input-wrapper:focus-within {
    border-color: #60a5fa;
    background: rgba(96,165,250,0.08);
}

.input-icon {
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.location-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    padding: 16px 0;
    font-family: 'Segoe UI', sans-serif;
}

.location-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-error {
    font-size: 11px;
    color: #f87171;
    min-height: 16px;
    margin-bottom: 16px;
}

.btn-confirm {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 17px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 8px 24px rgba(37,99,235,0.4);
    margin-bottom: 20px;
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37,99,235,0.5);
}

.btn-confirm:active { transform: translateY(0); }

.btn-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-confirm:hover .btn-arrow { transform: translateX(4px); }

.onboarding-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    margin-bottom: 20px;
}

.onboarding-divider::before,
.onboarding-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.btn-geolocate {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.2s, border-color 0.2s;
}

.btn-geolocate:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

.btn-geolocate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.geo-icon { font-size: 18px; }

.btn-geolocate.loading .geo-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================
   PAGES COMMUNES
   ======================== */

.page-header {
    padding: 40px 24px 16px;
    flex-shrink: 0;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.page-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 3px;
}

.page-section-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 16px 8px;
    flex-shrink: 0;
}

/* ========================
   VUE CULTURES
   ======================== */

.cultures-list {
    padding: 0 16px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.culture-card {
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.culture-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.culture-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.culture-icon {
    font-size: 28px;
}

.culture-name {
    font-size: 15px;
    font-weight: 600;
}

.culture-area {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.culture-stage-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(96,165,250,0.15);
    color: #60a5fa;
    border: 1px solid rgba(96,165,250,0.3);
}

.culture-progress {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.culture-progress-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.6s ease;
}

.disease-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disease-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.07);
}

.disease-icon { font-size: 22px; flex-shrink: 0; }

.disease-info { flex: 1; }

.disease-name {
    font-size: 13px;
    font-weight: 600;
}

.disease-cultures {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.disease-risk {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.disease-risk.low    { background: rgba(34,197,94,0.15);  color: #4ade80; }
.disease-risk.medium { background: rgba(234,179,8,0.15);  color: #fbbf24; }
.disease-risk.high   { background: rgba(239,68,68,0.15);  color: #f87171; }

.water-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 0 16px 24px;
}

.water-card {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.07);
}

.water-card-icon { font-size: 22px; margin-bottom: 6px; }
.water-card-name { font-size: 10px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.water-card-value { font-size: 13px; font-weight: 700; }
.water-card-value.low    { color: #4ade80; }
.water-card-value.medium { color: #fbbf24; }
.water-card-value.high   { color: #f87171; }

/* ========================
   VUE TÂCHES
   ======================== */

.windows-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.window-card {
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.window-card.success { background: rgba(34,197,94,0.12);  border-color: rgba(34,197,94,0.25); }
.window-card.warning { background: rgba(234,179,8,0.12);  border-color: rgba(234,179,8,0.25); }
.window-card.danger  { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.25); }

.window-icon { font-size: 24px; flex-shrink: 0; }

.window-info { flex: 1; }

.window-title {
    font-size: 13px;
    font-weight: 600;
}

.window-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}

.window-score {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.window-score.green  { color: #4ade80; }
.window-score.yellow { color: #fbbf24; }
.window-score.red    { color: #f87171; }

.planning-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.planning-day {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 10px 14px;
}

.planning-day-name {
    font-size: 12px;
    font-weight: 600;
    width: 36px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
}

.planning-day-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.op-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

.op-pill.green  { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.op-pill.yellow { background: rgba(234,179,8,0.15);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }
.op-pill.red    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

.todo-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.07);
}

.todo-item:hover { background: rgba(255,255,255,0.09); }

.todo-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    transition: all 0.2s;
}

.todo-item.done .todo-check {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.todo-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.todo-item.done .todo-text {
    text-decoration: line-through;
    color: rgba(255,255,255,0.4);
}

.todo-delete {
    font-size: 14px;
    color: rgba(255,255,255,0.2);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.todo-delete:hover { color: #f87171; }

.btn-add-task {
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.2s;
}

.btn-add-task:hover { background: rgba(96,165,250,0.18); }

/* ========================
   VUE RAPPORTS
   ======================== */

.report-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px;
}

.report-stat-card {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.07);
}

.report-stat-icon { font-size: 22px; margin-bottom: 8px; }

.report-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.report-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.report-scores {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-bar-name { font-size: 13px; font-weight: 500; }
.score-bar-val  { font-size: 13px; font-weight: 700; }

.score-bar-bg {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.7s ease;
}

.score-bar-fill.green  { background: linear-gradient(90deg, #16a34a, #4ade80); }
.score-bar-fill.yellow { background: linear-gradient(90deg, #ca8a04, #fbbf24); }
.score-bar-fill.red    { background: linear-gradient(90deg, #dc2626, #f87171); }

.report-treatments {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.treatment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 14px;
}

.treatment-left { display: flex; align-items: center; gap: 10px; }
.treatment-icon { font-size: 20px; }
.treatment-name { font-size: 13px; font-weight: 500; }
.treatment-count {
    font-size: 13px;
    font-weight: 700;
    color: #60a5fa;
}

.export-section {
    padding: 16px 16px 32px;
}

.btn-export {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1.5px dashed rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 16px 20px;
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    font-family: 'Segoe UI', sans-serif;
    font-size: 20px;
    text-align: left;
}

/* ========================
   BURGER BUTTON
   ======================== */
.burger-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.burger-btn:hover { background: rgba(255,255,255,0.18); }
.burger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* ========================
   DRAWER OVERLAY
   ======================== */
.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 40px;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ========================
   SIDE DRAWER
   ======================== */
.side-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    height: 100%;
    background: linear-gradient(160deg, #0a0f2e 0%, #0d1b3e 60%, #0a1628 100%);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}
.side-drawer.active {
    transform: translateX(0);
    pointer-events: all;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 56px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: white;
}
.drawer-close {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.2); }

.drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.drawer-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-bottom: -4px;
}
.drawer-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 10px 14px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: border-color 0.2s;
}
.drawer-input-wrapper:focus-within {
    border-color: rgba(96, 165, 250, 0.6);
}
.drawer-input-icon { font-size: 15px; }
.drawer-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    flex: 1;
    font-family: 'Segoe UI', sans-serif;
}
.drawer-input::placeholder { color: rgba(255,255,255,0.3); }

.drawer-error {
    font-size: 12px;
    color: #f87171;
    min-height: 14px;
    margin-top: -4px;
}

.drawer-btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'Segoe UI', sans-serif;
}
.drawer-btn-search:disabled { opacity: 0.55; cursor: default; }

.drawer-divider {
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    position: relative;
    line-height: 1;
}
.drawer-divider::before,
.drawer-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.drawer-divider::before { left: 0; }
.drawer-divider::after  { right: 0; }

.drawer-btn-geo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    color: white;
    font-size: 14px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Segoe UI', sans-serif;
}
.drawer-btn-geo:hover  { background: rgba(255,255,255,0.11); }
.drawer-btn-geo:disabled { opacity: 0.55; cursor: default; }

.export-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.4); }
.export-sub   { font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 2px; }

/* ========================
   AUTOCOMPLETE SUGGESTIONS
   ======================== */
.autocomplete-wrap {
    position: relative;
    width: 100%;
}
.suggestions-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #131836;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    z-index: 600;
    overflow: hidden;
    display: none;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.suggestions-list.visible { display: block; }
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.active { background: rgba(255,255,255,0.09); }
.suggestion-icon { font-size: 14px; flex-shrink: 0; }
.suggestion-city   { font-size: 13px; font-weight: 600; color: white; }
.suggestion-region { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ========================
   MODAL AJOUT TÂCHE
   ======================== */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: 40px;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.task-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #131836;
    border-radius: 24px 24px 0 0;
    z-index: 301;
    padding: 0 0 32px;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.task-modal.active {
    transform: translateY(0);
    pointer-events: all;
}

.task-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.task-modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: white;
}
.task-modal-close {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.task-modal-close:hover { background: rgba(255,255,255,0.16); }

.task-modal-body {
    padding: 16px 20px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.task-modal-textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 14px;
    color: white;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    resize: none;
    outline: none;
    line-height: 1.5;
    transition: border-color 0.2s;
}
.task-modal-textarea:focus {
    border-color: rgba(96,165,250,0.55);
}
.task-modal-textarea::placeholder { color: rgba(255,255,255,0.28); }

.task-modal-error {
    font-size: 12px;
    color: #f87171;
    min-height: 14px;
}

.task-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px 0;
}
.task-modal-btn-cancel {
    flex: 1;
    padding: 13px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.task-modal-btn-cancel:hover { background: rgba(255,255,255,0.12); }
.task-modal-btn-confirm {
    flex: 2;
    padding: 13px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}
.task-modal-btn-confirm:hover { opacity: 0.88; }
