/* --- 1. GLOBAL RESET & TYPOGRAPHY --- */
html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Κλειδώνει το scroll του browser */
}

html, body, .page, main, .content {
    background-color: #0f111a !important;
    margin: 0;
    padding: 0;
    border: none !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}

/* --- 2. SIDEBAR & SMOOTH TRANSITION --- */
.sidebar {
    background: linear-gradient(90deg, #2a0944 0%, #0f111a 100%) !important;
    border-right: none !important;
    width: 250px;
    height: 100vh;
    position: relative;
    z-index: 10;
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 17, 26, 0.4), transparent);
    pointer-events: none;
}

.top-row.navbar, .sidebar .top-row {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

.nav-scrollable { background-color: transparent !important; }

/* --- 3. DASHBOARD LAYOUT & HEADER --- */
.dashboard-wrapper {
    padding: 30px 40px;
    color: #e2e8f0;
    background-color: #0f111a;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.main-title {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
}

.subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

/* --- HEADER RIGHT: PROGRESS & PILLS --- */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.daily-progress-container {
    width: 200px;
}

.prog-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 6px;
    color: #94a3b8;
    font-weight: 500;
}

.prog-track {
    height: 4px;
    background: #1e2130;
    border-radius: 10px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.status-pills {
    display: flex;
    gap: 10px;
}

.pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.pill-success {
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.15);
}

.pill-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.15);
}

/* --- ANIMATIONS --- */
.live-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: blink-dot 1.5s infinite;
}

@keyframes blink-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- 4. STATS GRID & CARDS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.s-card {
    background: #161926;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #23273a;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-card:hover {
    transform: translateY(-3px);
    background: #1c2033;
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.s-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s-card:hover .s-icon { transform: scale(1.15); }

.purple { background: rgba(99, 102, 241, 0.1); color: #818cf8; }
.blue { background: rgba(14, 165, 233, 0.1); color: #38bdf8; }
.green { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.gold { background: rgba(217, 119, 6, 0.1); color: #fbbf24; }

.s-data h3 { margin: 0; font-size: 18px; font-weight: 600; color: white; letter-spacing: -0.5px; }
.s-data p { margin: 0; font-size: 11px; color: #94a3b8; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }

/* --- 5. UTILITIES --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #23273a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2d324a; }

/* --- 6. HERO GRID SYSTEM --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.hero-card {
    background: #161926;
    border: 1px solid #23273a;
    border-radius: 24px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* NEW: Label Stack for Date below Tag */
.hero-label-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-time-sub {
    font-size: 12px;
    color: #94a3b8;
}

.time-countdown {
    color: #818cf8;
    font-weight: 600;
}

.hero-body-vertical {
    text-align: center;
    padding: 10px 0;
    flex-grow: 1;
}

.hero-avatar-large {
    width: 80px;
    height: 80px;
    background: #1e2130;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #6366f1;
    border: 2px solid #2d324a;
}

.hero-body-vertical h2 { font-size: 28px; margin: 0; color: white; }
.pet-breed { color: #94a3b8; font-size: 14px; margin: 5px 0; }
.service-type { font-weight: 700; color: #818cf8; font-size: 13px; text-transform: uppercase; }

.owner-box {
    margin-top: 15px;
    padding: 10px;
    background: rgba(30, 33, 48, 0.5);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}

.btn-phone {
    background: #6366f1;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: 0.2s;
}

.btn-phone:hover {
    background: #4f46e5;
    transform: scale(1.1);
}

/* New: Customer Notes Alert Style */
.customer-notes-alert {
    margin: 15px auto 0;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #f87171;
    max-width: 90%;
    text-align: left;
}

.customer-notes-alert i { margin-top: 2px; }

.notes-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Επιτρέπει στο input να πάει κάτω */
    gap: 12px;
    margin-top: 10px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #e2e8f0;
}

.note-bullet {
    color: #6366f1;
    font-weight: bold;
}

.notes-input {
    background: #0f111a;
    border: 1px solid #2d324a;
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 13px;
    resize: none;
    height: 90px;
    margin-top: auto; /* Σπρώχνει το input στο τέλος του hero-card */
}

.btn-arrival-pulse {
    margin-top: 15px;
    background: #22c55e;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- 8. AGENDA SECTION (ZERO SCROLL KEY) --- */
.agenda-hero-container {
    margin-top: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.agenda-card-wide {
    background: #161926;
    border: 1px solid #23273a;
    border-radius: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    background-image: radial-gradient(#23273a 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

.agenda-inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(35, 39, 58, 0.5);
    background: rgba(22, 25, 38, 0.8);
    backdrop-filter: blur(4px);
}

.agenda-inner-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 500;
}

.agenda-badge {
    font-size: 11px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.agenda-list-scroll {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agenda-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.agenda-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.row-time {
    width: 60px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.row-indicator {
    width: 4px;
    height: 24px;
    border-radius: 4px;
    margin-right: 20px;
}

.row-indicator.blue { background: #0ea5e9; }
.row-indicator.purple { background: #8b5cf6; }
.row-indicator.orange { background: #f59e0b; }

.row-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.row-details .pet-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.row-details .service-type {
    font-size: 12px;
    color: #64748b;
}

.row-owner {
    width: 150px;
    font-size: 13px;
    color: #94a3b8;
    text-align: left;
}

.row-status {
    font-size: 18px;
    color: #23273a;
    width: 30px;
    display: flex;
    justify-content: flex-end;
}

.finished .row-status { color: #22c55e; }
.finished .pet-name { color: #64748b; text-decoration: line-through; }

.agenda-row.active {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.row-badge {
    background: #6366f1;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

#blazor-error-ui {
    display: none !important;
}