html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 0;
    background-color: #F8F9FA
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}


/*LOGIN PAGE*/

/*Login Button*/
.login-btn {
    background: linear-gradient(135deg, #1c4e63, #307089); /* Darker gradient as the default */
    color: white; /* Text color */
    border: none; /* Remove borders */
    border-radius: 20px; /* More rounded corners */
    padding: 15px 30px; /* Comfortable padding for touch */
    font-size: 1.8rem; /* Large, readable text */
    font-weight: bold; /* Emphasize the text */
    cursor: pointer; /* Pointer cursor for clarity */
    width: 100%; /* Full width for consistent alignment */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: all 0.3s ease; /* Smooth transitions */
}

    .login-btn:hover {
        background: linear-gradient(135deg, #1c4e63, #154256); /* Slightly darker on hover */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* More pronounced shadow */
        transform: translateY(-2px); /* Slight hover lift */
    }

    .login-btn:active {
        transform: translateY(3px); /* Push effect on press */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    }


/*HEADER*/

/* Header Styling */
.header {
    background: white;
    padding: 20px 40px; /* Adjust top-bottom and side paddings */
    position: relative; /* To position the gradient strip */
    z-index: 1;
}

    .header::after {
        content: ""; /* Create a pseudo-element for the gradient strip */
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px; /* Height of the gradient strip */
        background: linear-gradient(90deg, #1c4e63, #307089); /* Brand blue gradient */
        z-index: -1; /* Place the strip below the header */
    }

/* Logo Styling */
.logo-container img {
    max-height: 60px; /* Adjust the height to fit nicely */
    object-fit: contain; /* Prevent distortion */
}

/* Home Icon Button Styling */
.home-icon-btn {
    background: none; /* Remove background for a clean look */
    border: none; /* Remove borders */
    color: #1c4e63; /* Theme blue color */
    font-size: 2rem; /* Larger size for better touch experience */
    cursor: pointer; /* Pointer cursor on hover */
    transition: all 0.3s ease; /* Smooth hover effects */
    padding: 0; /* Remove padding to center the icon */
}

    /* Hover Effect for Icon */
    .home-icon-btn:hover {
        color: #154256; /* Slightly darker blue on hover */
    }

    /* Active (Pressed) Effect */
    .home-icon-btn:active {
        color: #307089;
        transform: scale(0.95); /* Slightly shrink on click */
        background-color: rgba(48, 112, 137, 0.15); /* Subtle blue highlight */
        border-radius: 5px; /* Rounded edges for the highlight */
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px; /* Adjust padding for smaller screens */
    }

    .home-icon-btn {
        font-size: 1.8rem; /* Slightly smaller icon for compact view */
    }

    .logo-container img {
        max-height: 50px; /* Resize logo for smaller screens */
    }
}



/*HOME PAGE*/

/* General Container */
.container-fluid {
    padding: 20px;
    height: 100vh; /* Full height for consistent layout */
    display: flex;
    flex-direction: column;
    background-color:white;
}

/* Top Section Container */
.row.align-items-center {
    display: flex;
    align-items: stretch; /* Ensure both sections are the same height */
    justify-content: space-between; /* Space out left and right sections */
    gap: 20px; /* Add space between sections */
    padding: 20px;
    background-color: #ffffff; /* Clean white background */
    border-radius: 12px; /* Rounded corners for a modern look */
    height: auto; /* Dynamically adjust height */
    min-height: 150px; /* Set a minimum height for consistency */
    flex-wrap: wrap; /* Allow wrapping in portrait mode */
}

/* Left Section: Logo and Logout Button */
.left-section {
    flex: 1; /* 25% width */
    display: flex;
    flex-direction: column; /* Stack logo and logout button */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    gap: 20px; /* Increased gap between logo and button */
    text-align: center; /* Center align text */
    padding: 10px; /* Add padding for spacing */
}

/* Logo */
.logo {
    max-height: 90px; /* Larger logo size */
    max-width: 100%; /* Ensure responsiveness */
    object-fit: contain; /* Prevent distortion */
}

/* Logout Button */
.logout-btn {
    background: none; /* Remove background for minimal look */
    color: #307089; /* Brand color for text */
    font-size: 1.2rem; /* Slightly larger font */
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline; /* Add underline for emphasis */
    padding: 15px; /* Add touch-friendly padding */
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
}

    .logout-btn:hover {
        color: #154256; /* Darker blue on hover */
    }

    .logout-btn:active {
        transform: scale(0.95); /* Slightly scale down */
        background-color: rgba(48, 112, 137, 0.15); /* Subtle blue highlight */
        border-radius: 5px; /* Add rounding for the highlight */
        transition: transform 0.1s ease; /* Quick scale effect */
    }

/* Right Section: User Details Table */
.right-section {
    flex: 3; /* 75% width */
    display: flex;
    flex-direction: column; /* Stack table items if needed */
    justify-content: center; /* Center table vertically */
    align-items: center; /* Center table horizontally */
    width: 100%; /* Ensure it spans full width of the container */
}

/* Table */
.static-table {
    width: 90%; /* Match width of Clock In/Out buttons */
    max-width: 600px; /* Limit maximum width */
    font-size: 1rem; /* Slightly larger font for better readability */
    border-collapse: collapse; /* Remove cell gaps */
    background-color: transparent; /* No background for simplicity */
    margin-top: 10px; /* Add some space above the table */
}




    .static-table td {
        color: #333; /* Neutral text for readability */
        width: 70%; /* Set right column width */
    }

    .static-table tr:not(:last-child) td {
        border-bottom: 1px solid #ddd; /* Subtle separation between rows */
    }



/* Table Title Row */
.table-title-row {
    background-color: #eef0f1; 
    color: #307089; 
    font-size: 1.25rem; /* Slightly larger font size */
    font-weight: 600; /* Bold for emphasis */
    text-align: left !important; /* Center-align the text */
    border-top-left-radius: 10px; /* Rounded corners for the top-left */
    border-top-right-radius: 10px; /* Rounded corners for the top-right */
}

/* Ensure corners are rounded */
.static-table thead:first-child .table-title-row th:first-child {
    border-top-left-radius: 10px;
}

.static-table thead:first-child .table-title-row th:last-child {
    border-top-right-radius: 10px;
}

/* Table Content */
.static-table tbody th,
.static-table tbody td {
    text-align: left; /* Align left for table content */
}

/* Maintain border spacing */
.static-table tr:not(:last-child) td {
    border-bottom: 1px solid #ddd; /* Subtle separation between rows */
}





/* Buttons Section */
.buttons-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Larger gap for touch accessibility */
    padding: 20px;
    margin-top: 0 !important;
}

/* Base Button Styling */
.custom-button {
    background: linear-gradient(135deg, #1c4e63, #307089); /* Default gradient */
    color: white;
    font-size: 1.8rem; /* Larger text for tablets */
    font-weight: bold;
    border: none;
    border-radius: 15px; /* Rounded corners for modern look */
    padding: 20px 40px; /* Larger touch area */
    transition: all 0.3s ease;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    width: 90%;
    max-width: 600px;
    text-align: center;
}

    .custom-button:active {
        transform: scale(1.05);
        transform: translateY(2px); /* Press effect */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    }

    .custom-button:disabled {
        background: #d3d3d3;
        color: #7a7a7a;
        cursor: not-allowed;
    }

/* Specific Buttons */
.clock-button {
    font-weight: bold;
}

.clockin-button {
    background: linear-gradient(135deg, #28a745, #218838); /* Bright green gradient */
}

.clockout-button {
    background: linear-gradient(135deg, #34a853, #218c3a); /* Slightly darker green gradient */
    color: black;
}

.workload-button {
    background: linear-gradient(135deg, #1c4e63, #307089); /* Matches brand colors */
}

.incident-button {
    background: linear-gradient(135deg, #dc3545, #b32428); /* Red for incident */
}

/* Shared Styling */
.static-table,
.custom-button {
    width: 90%;
    max-width: 600px;
    margin: 0 auto; /* Center-align */
}
.jobs-buttons-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0 0 0 !important;
    margin-top: 0 !important;
    flex-grow: 0;
    display: block;
}
.jobs-progress-button {
    background: linear-gradient(135deg, #1c4e63, #307089);
    color: white; /* White text */
    font-weight: bold;
    border-radius: 15px; /* Rounded corners */
    transition: all 0.3s ease;
}

    .jobs-progress-button:active {
        transform: scale(1.05); /* Slight enlargement on press */
        background: linear-gradient(135deg, #218838, #28a745); /* Reverse gradient on press */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Press effect */
    }

    .jobs-progress-button:hover {
        filter: brightness(1.1); /* Slightly brighten on hover */
        cursor: pointer;
    }

.jobs-cancel-button {
    background: linear-gradient(135deg, #dc3545, #b32428); /* Red gradient */
    color: white; /* White text */
    font-weight: bold;
    border-radius: 15px; /* Rounded corners */
    transition: all 0.3s ease;
}

    .jobs-cancel-button:active {
        transform: scale(1.05); /* Slight enlargement on press */
        background: linear-gradient(135deg, #b32428, #dc3545); /* Reverse gradient on press */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Press effect */
    }

    .jobs-cancel-button:hover {
        filter: brightness(1.1); /* Slightly brighten on hover */
        cursor: pointer;
    }


/* Responsive Adjustments */
@media (max-width: 768px) {
    .row.align-items-center {
        flex-direction: column; /* Stack vertically in smaller screens */
    }

    .left-section,
    .right-section {
        width: 100%; /* Full width for stacked sections */
        text-align: center; /* Center align text */
    }

    .static-table {
        font-size: 0.95rem; /* Slightly smaller font for compact screens */
        width: 90%; /* Keep consistent width in smaller screens */
    }
}


/* Landscape Adjustments */
@media (orientation: landscape) {
    .logo {
        max-height: 60px; /* Reduced logo size */
    }

    .logout-btn {
        font-size: 0.9rem; /* Smaller font for landscape */
    }

    .static-table {
        font-size: 0.85rem; /* Smaller font for better fit */
        width: 85%; /* Keep consistent with buttons */
    }

    .custom-button {
        font-size: 1.4rem; /* Smaller text size */
        padding: 12px 24px; /* Adjusted padding */
    }

    .buttons-section {
        gap: 15px; /* Reduced gap for better spacing */
    }
}


/* Desktop Adjustments */
@media (min-width: 992px) {
    /* Top Section Container */
    .row.align-items-center {
        gap: 40px; /* Increase space between logo and table */
        padding: 40px; /* Add more padding for desktop screens */
    }

    /* Left Section: Logo and Logout Button */
    .left-section {
        gap: 30px; /* Add more spacing between logo and button */
    }

    .logo {
        max-height: 120px; /* Increase logo size for larger screens */
    }

    .logout-btn {
        font-size: 1.4rem; /* Increase button font size for readability */
        padding: 20px; /* Add larger padding for better proportions */
    }

    /* Right Section: User Details Table */
    .right-section {
        padding: 20px; /* Add padding around the table */
    }

    .static-table {
        width: 80%; /* Increase table width for better alignment */
        max-width: 800px; /* Allow a larger max width on desktop */
        font-size: 1.2rem; /* Increase font size for better readability */
    }

        .static-table th,
        .static-table td {
            padding: 15px 20px; /* Increase cell padding for a spacious look */
        }

    /* Buttons Section */
    .buttons-section {
        gap: 40px; /* Increase gap between buttons */
    }

    .custom-button {
        font-size: 1.6rem; /* Adjust button font size for desktop */
        padding: 20px 50px; /* Increase padding for a more prominent look */
        max-width: 700px; /* Allow larger button width */
    }

    /* Snackbar messages */
    .snackbar {
        font-size: 18px; /* Increase font size for desktop */
        padding: 15px 30px; /* Adjust padding for larger screens */
    }

        .snackbar .close-btn {
            font-size: 28px; /* Slightly larger close button */
            width: 50px;
            height: 50px;
        }
}



/* Snackbar messages */
.snackbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: 500;
    z-index: 1000;
    display: none; /* Hidden by default */
    align-items: center;
    opacity: 0; /* Default hidden */
    pointer-events: none; /* Default non-interactive */
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

    /* Success Snackbar */
    .snackbar.alert-success {
        background-color: #28a745; /* Success green */
    }

    /* Error Snackbar */
    .snackbar.alert-danger {
        background-color: #dc3545; /* Danger red */
    }

    /* Show State */
    .snackbar.show {
        display: flex; /* Make it visible */
        opacity: 1; /* Fully visible */
        pointer-events: auto; /* Allow interaction */
        bottom: 40px; /* Slight lift when shown */
    }

    /* Close Button for Snackbar */
    .snackbar .close-btn {
        margin-left: 16px;
        background: none;
        border: none;
        color: white;
        font-size: 24px; /* Increase size */
        cursor: pointer;
        width: 40px; /* Larger clickable area */
        height: 40px; /* Larger clickable area */
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation; /* Ensure smooth touch behavior */
    }

        /* Add a hover effect for desktop users */
        .snackbar .close-btn:hover {
            opacity: 0.8;
        }

        /* Add a tap highlight for touch devices */
        .snackbar .close-btn:active {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 50%; /* Circular highlight for better feedback */
        }



/*Collection/Delivery Note*/

/* Note Panel Backdrop */
.note-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure it's on top */
}

/* Note Panel Container */
.note-panel {
    background: white;
    width: 90%;
    max-width: 600px; /* Maintain width for vertical tablet */
    border-radius: 15px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    /* Dynamic height for screens */
    max-height: 90vh; /* Ensure it fits within the viewport */
    overflow-y: auto; /* Enable scrolling if content is too tall */
}

/* Header */
.note-panel-header {
    background: linear-gradient(135deg, #1c4e63, #307089); /* Brand gradient */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .close-btn:hover {
        transform: scale(1.2); /* Subtle enlarge effect */
    }

.note-panel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 70vh; /* Restrict height to fit viewport */
}


/* Form Group Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .form-group label {
        font-size: 1rem;
        font-weight: bold;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #307089; /* Brand color */
            box-shadow: 0px 0px 4px rgba(48, 112, 137, 0.5);
        }

/* Card for Note Content */
.card {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width:100%;
}

.card-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    max-height: 300px; /* Increased height for better text visibility */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Signature Box */
.signature-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

    .signature-box label {
        font-size: 1rem;
        font-weight: bold;
        color: #333;
    }

    /* Signature Box */
    .signature-box canvas {
        width: 100%; /* Responsive width */
        max-width: 600px; /* Increased width for larger signature area */
        height: 300px; /* Increased height for easier signing */
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    }


/* Footer */
.note-panel-footer {
    background: #f5f5f5;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
}

    /* Submit Button */
    .note-panel-footer .btn {
        background: linear-gradient(135deg, #1c4e63, #307089); /* Brand gradient */
        color: white;
        font-size: 1rem;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        padding: 10px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .note-panel-footer .btn:hover {
            background: linear-gradient(135deg, #154256, #1c4e63); /* Darker gradient */
        }

        .note-panel-footer .btn:active {
            transform: scale(0.98);
            background: linear-gradient(135deg, #307089, #1c4e63); /* Reverse gradient */
        }

/* Adjustments for Landscape Mode or Larger Screens */
@media (min-aspect-ratio: 3/2), (min-width: 768px) {
    .note-panel {
        max-width: 90%; /* Wider panel for landscape */
        max-height: 85vh; /* Adjust height for landscape */
    }

    .card {
        width: 100%; /* Ensure full width in larger screens */
    }

    .signature-box canvas {
        max-width: 100%; /* Match the card's width */
        margin: 0 auto; /* Center the canvas */
    }
}

/* Adjustments for Large Desktop Screens */
@media (min-width: 1200px) {
    .note-panel {
        max-width: 50%; /* Larger width for big screens */
        max-height: 80vh; /* Keep the panel within the viewport */
    }

    .card {
        width: 100%; /* Ensure consistent width for larger screens */
    }

    .signature-box canvas {
        max-width: 100%; /* Match the card's width */
        margin: 0 auto; /* Center the canvas */
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Modal */
.custom-modal .modal-content {
    border-radius: 20px; /* Rounded corners */
    box-shadow: none;
    background: linear-gradient(135deg, #f8f9fa, #ffffff); /* Subtle gradient */
    max-width: 500px; /* Set a max width for proportion */
    margin: 0 auto; /* Center horizontally */

}

/* Modal Header */
.custom-modal-header {
    background-color: #307089; /* Brand color */
    color: white; /* White text */
    border-top-left-radius: 20px; /* Match modal content */
    border-top-right-radius: 20px;
    font-size: 1.5rem; /* Larger title */
    font-weight: bold;
    padding: 20px;
    text-align: center; /* Center align the header text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle divider */
}

/* Modal Body */
.custom-modal-body {
    font-size: 1.2rem; /* Slightly larger text */
    color: #4a4a4a; /* Neutral dark text color */
    padding: 20px;
    text-align: center; /* Center-align text */
    line-height: 1.6; /* Improve readability */
}

    /* Success Message */
    .custom-modal-body p.success {
        color: inherit;
        font-weight: bold;
        margin-top: 15px;
    }

/* Modal Footer */
.custom-modal-footer {
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 15px; /* Space between buttons */
    padding: 20px;
    border-top: 1px solid #ddd; /* Subtle divider */
}

/* Modal Buttons */
.custom-modal-button {
    padding: 14px 14px; /* Comfortable padding for touchscreens */
    font-size: 1.1rem; /* Modern, clean font size */
    font-weight: 600; /* Medium weight for professional typography */
    border-radius: 8px; /* Subtle rounding for a sleek appearance */
    border: none; /* No border for minimal design */
    background: linear-gradient(135deg, #d3d6dd, #c4c7cd); /* Neutral gray gradient */
    color: #333; /* Neutral text color for readability */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: all 0.3s ease; /* Smooth transitions */
    width: 160px; /* Uniform width for all buttons */
    text-align: center; /* Center text alignment */
    outline: none;
}

    /* Primary Button (Yes) */
    .custom-modal-button.btn-primary {
        background: #307089;
        color: white;
    }

        .custom-modal-button.btn-primary:hover,
        .custom-modal-button.btn-primary:focus {
            background: linear-gradient(135deg, #245678, #1a3e56); /* Subtle darker blue on hover */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
        }
        .custom-modal-button.btn-primary:focus {
            outline: 2px solid #0056b3; /* Focus ring for accessibility */
            outline-offset: 4px; /* Space between button and focus ring */
        }


    /* Secondary Button (No) */
    .custom-modal-button.btn-secondary {
        background: white;
        color: #307089;
    }

        .custom-modal-button.btn-secondary:hover,
        .custom-modal-button.btn-secondary:focus {
            background: #f0f4f8; /* Light blue tint on hover */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
        }

        .custom-modal-button.btn-secondary:focus {
            outline: 2px solid #d6d8db; /* Focus ring for accessibility */
            outline-offset: 4px; /* Space between button and focus ring */
        }

    /* Button Press Effect */
    .custom-modal-button:active {
        transform: scale(0.98); /* Subtle shrink for tactile feedback */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduced shadow */
    }


/* Adjust Spacing in Footer */
.custom-modal-footer {
    display: flex;
    justify-content: space-evenly; /* Even spacing between buttons */
    gap: 20px; /* Maintain consistent gap */
    padding: 20px;
}

/* Background Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
    backdrop-filter: blur(6px); /* Apply blur effect */
    z-index: 999; /* Ensure it's above other content */
}

.custom-modal-header .close {
    font-size: 1.8rem; /* Bigger X */
    color: white;
    background: none !important; /* Remove any background */
    border: none !important; /* Remove any border */
    padding: 5px 10px; /* Padding for better clickability */
    cursor: pointer; /* Ensure it looks clickable */
    transition: color 0.3s ease; /* Smooth transition */
}

.custom-modal-body .list-group-item {
    font-size: 1.4rem; /* Bigger font for easy readability */
    padding: 20px; /* More spacing for better touch interaction */
    border-radius: 10px; /* Rounded corners for a smooth look */
    background: #f8f9fa; /* Light background */
    color: #333; /* Dark text for contrast */
    margin-bottom: 10px; /* Space between options */
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

/* Add Fade-In Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-modal .modal-content {
    animation: modalFadeIn 0.3s ease-out; /* Smooth fade-in */
}

.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: #990000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    z-index: 9999;
}

