:root {
    --primary: #007bff;
    --danger: #dc3545;
    --success: #28a745;
    --background: #f9f9f9;
    --light: #f0f0f0;
    --text-dark: #333;
    --font-size-base: 0.95rem;
    --font-size-title: 1.25rem;
    --font-size-small: 0.85rem;

    /* Layout sizing */
    --header-height: 64px;
    --footer-height: 84px; /* was 72px - give more breathing room */
    --icon-size: 2.1rem; /* was 1.6rem - improve tap target & legibility */
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: var(--font-size-base);
    color: var(--text-dark);
    background-color: var(--background);
}

.section-title {
    font-size: var(--font-size-title);
    text-align: center;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.admin-buttons {
    padding-bottom: 10px;
}
.admin-buttons button {
    min-width: 280px;
    font-size: 1.2rem; /* reduced from 1.8rem */
    padding-bottom: 6px;
}

/* mobile overrides for big buttons */
@media (max-width: 480px) {
    .admin-buttons button { font-size: 1rem; min-width: 100%; }
}

.search-section input,
.search-section .k-radio-list {
    font-size: 1.2rem; /* reduced */
}

.week-navigation {
    font-size: var(--font-size-base);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.week-range {
    font-weight: 500;
}

.client-header {
    padding: 0.75rem 1rem;
    
    border-radius: 5px;
    font-size: 1.25rem; /* reduced */
}

.day-block {
    background-color: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.day-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.k-panelbar-header{
    background-color: #227eef!important;
}
.request-card {
    background-color: #eef6ff;
    border-left: 4px solid var(--primary);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: var(--font-size-base);
}

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

.skill {
    font-weight: 600;
    color: var(--primary);
}

.assigned-pill {
    background-color: var(--success);
    color: white;
    font-size: var(--font-size-small);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status {
    font-size: var(--font-size-small);
    margin-top: 4px;
    color: #555;
}

.status-label {
    background: #e0e0e0;
    border-radius: 12px;
    padding: 2px 8px;
    font-weight: 500;
}

.btn-assign {
    margin-top: 0.6rem;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: var(--font-size-small);
}

.noSchedule {
    text-align: center;
    color: #aaa;
    font-style: italic;
    font-size: var(--font-size-small);
}

.new-request {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-small);
}



h1:focus {
    outline: none;
}
.custom-primary-button {
    background-color: #007BFF !important;
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid #007BFF;
    border-radius: 4px;
    box-shadow: none;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
    .custom-primary-button:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF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yIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/*
   MAIN CONTENT AREA
   Keep bottom padding equal to footer height to avoid overlap on mobile
*/
.main-content {
    padding: 2px;
    font-size: 1rem; /* was 3rem - too large for mobile */
    font-family: Arial, sans-serif;
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px));
}

/* Main Footer Container */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Avoid double-counting the safe-area by using it only as padding */
    height: var(--footer-height);
    background-color: #ffffff; /* White background */
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow at the top */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Navigation Items Container */
.footer-nav {
    display: flex;
    justify-content: space-evenly; /* more even spacing */
    align-items: center;
    width: 100%;
    gap: 8px; /* consistent gaps between items */
    padding: 4px 10px; /* side padding so icons are not glued to edges */
}

/* Individual Navigation Items */
.footer-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #000000; /* Default color is black */
    min-height: 50px; /* larger tap target */
}

    .footer-item:hover {
        transform: scale(1.03);
        color: #1877f2; /* blue */
    }

    .footer-item.active {
        color: #1877f2; /* Highlight the active icon */
    }

    /* Icon Styling */
.nav-icon {
    display: inline-block;
    font-size: var(--icon-size); /* increased */
    color: inherit; /* Inherit color from parent */
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1; /* avoid extra vertical space */
}

@media (max-width: 480px) {
    :root { --icon-size: 2rem; } /* slightly smaller on very small screens */
}

.card-assigment-confirmed {
    border-color: rgba(0, 194, 255, 0.1) !important; /* #00C2FF at 50% opacity */
}

.card-assigment-proposed {
    border-color: rgba(255, 255, 255, 0.1) !important; /* white at 50% opacity */
}

.card-assigment-rejected {
    border-color: rgba(255, 245, 0, 0.1) !important; /* #FFF500 at 50% opacity */
}

.card-assigment-executedCompletely,
.card-assigment-executedPatially {
    border-color: rgba(0, 71, 255, 0.1) !important; /* #0047FF at 50% opacity */
}

.card-assignment-calledOff {
    border-color: rgba(255, 107, 0, 0.1) !important; /* #FF6B00 at 50% opacity */
}

/* HEADER (top-bar) */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* évite tout débordement horizontal */
}
.top-bar {
    height: var(--header-height);
    background-color: #0078D7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.2);
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: var(--header-height);
}

    .top-bar.hidden {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        box-shadow: none;
    }
.app-title {
    font-size: 1.2rem;
    margin: 0;
}

/* responsive logo */
.logo-lg img {
    max-height: calc(var(--header-height) - 16px);
    width: auto !important; /* override inline width attribute */
    max-width: 65vw;
    height: auto;
}

.hamburger-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem; /* reduced */
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    padding-right: 8px;
    align-items: center;
}

    .hamburger-button:focus {
        outline: 2px solid #fff;
    }

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 100%; 
    min-height: 50%;
    background-color: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.2);
    padding: 0;
    margin: 0;
    animation: fadeIn 0.3s ease-out;
    z-index: 1000;
}

    .dropdown-menu li {
        list-style: none;
        padding: 1rem; /* reduced */
        cursor: pointer;
        font-size: 1.1rem; /* reduced from 3rem */
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        display: flex;
        color: #222;
        align-items: center;
        transition: background-color 0.2s ease;
    }

        .dropdown-menu li:hover,
        .dropdown-menu li:focus {
            background-color: #e9f2fb;
        }

        .dropdown-menu li i {
            margin-right: 0.75rem;
        }

/* OVERLAY */
.overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
    background-color: rgba(0,0,0,0.3);
    animation: fadeIn 0.2s;
}

/* MAIN CONTENT */
.main-content {
    padding-top: 0.5rem; /* léger padding constant */
    /* padding-bottom handled earlier to footer height */
    transition: margin-top 0.3s ease;
}

/* BOTTOM NAVIGATION (legacy) */
.bottom-nav {
    height: 4rem; /* 64px */
    background-color: white;
    box-shadow: 0 -0.2rem 0.5rem rgba(0,0,0,0.2);
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

    .bottom-nav button {
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #444;
        width: 3rem;
        height: 3rem;
    }

        .bottom-nav button:focus {
            outline: 2px solid #0078D7;
        }

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


