﻿@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');
/* Khmer Font Support */
* {
    font-family: 'Khmer OS Siemreap', 'Khmer OS Battambang', 'Khmer OS', 'Noto Sans Khmer', sans-serif;
}
/* ============================================================================
   BASE STYLES
   ============================================================================ */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
}

body {
    padding-bottom: 75px;
}

.e-attr {
    font-family: 'Khmer OS';
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.page {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    z-index: -1000;
}

    .page.expand {
        margin-left: 250px;
        z-index: 1;
    }

.nav-menu {
    margin-top: 15px;
}

.d-flex {
    display: flex;
}

.justify-content-start {
    justify-content: flex-start;
}

.my-style {
    min-width: 850px;
}

.grid-size {
    max-height: 700px;
    flex: 1 1 auto;
    overflow-y: auto;
}

/* ============================================================================
   CARD SYSTEM - ZOOM-RESPONSIVE
   ============================================================================ */

/* Base Card Styles */
.card_sample {
    min-height: 30rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    height: auto;
}

    .card_sample .e-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        overflow: hidden;
        min-height: 30rem;
    }

        /* Card Image Section */
        .card_sample .e-card .e-card-image {
            height: 8.75rem;
            min-height: 8.75rem;
            max-height: 8.75rem;
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.9375rem;
            border-bottom: 1px solid #dee2e6;
        }

            .card_sample .e-card .e-card-image img {
                max-width: calc(100% - 1.25rem);
                max-height: calc(100% - 1.25rem);
                width: auto;
                height: auto;
                object-fit: contain;
                object-position: center;
                transition: all 0.3s ease;
                filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.1));
            }

                .card_sample .e-card .e-card-image img:hover {
                    transform: scale(1.08);
                    filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.15));
                }

            /* Fallback for missing images */
            .card_sample .e-card .e-card-image::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, #2B9BD1 0%, #1E7BA8 100%);
                opacity: 0.05;
                z-index: 1;
            }

            .card_sample .e-card .e-card-image img[src=""],
            .card_sample .e-card .e-card-image img:not([src]),
            .card_sample .e-card .e-card-image img[src*="undefined"] {
                display: none;
            }

            .card_sample .e-card .e-card-image:has(img[src=""]),
            .card_sample .e-card .e-card-image:has(img:not([src])),
            .card_sample .e-card .e-card-image:has(img[src*="undefined"]) {
                background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
            }

                .card_sample .e-card .e-card-image:has(img[src=""]):after,
                .card_sample .e-card .e-card-image:has(img:not([src])):after,
                .card_sample .e-card .e-card-image:has(img[src*="undefined"]):after {
                    content: '🏢';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    font-size: 1.5rem;
                    color: #9aa0a6;
                    z-index: 2;
                }

        /* Card Header Section */
        .card_sample .e-card .e-card-header {
            padding: 0.75rem 1rem;
            flex-shrink: 0;
            border-bottom: 1px solid #e0e0e0;
            min-height: 6.875rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow: visible;
        }

            .card_sample .e-card .e-card-header .e-card-header-title {
                font-size: 0.875rem;
                font-weight: 600;
                margin-bottom: 0.5rem;
                word-break: break-word !important;
                line-height: 1.3;
                width: 100%;
                display: block !important;
                text-align: center;
                hyphens: auto;
                white-space: normal !important;
                overflow: visible !important;
            }

            .card_sample .e-card .e-card-header .e-card-sub-title {
                font-size: 0.75rem;
                color: #666;
                margin: 0;
                width: 100%;
                text-align: center;
                line-height: 1.3;
                margin-top: auto;
                white-space: normal;
            }

            .card_sample .e-card .e-card-header *,
            .card_sample .e-card .e-card-header,
            .card_sample .e-card .e-card-header > div,
            .card_sample .e-card .e-card-header > span {
                word-break: break-word !important;
                white-space: normal !important;
                max-width: 100% !important;
            }

        /* Card Content Section */
        .card_sample .e-card .e-card-content {
            padding: 0.75rem 1rem;
            flex-grow: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 12.5rem;
        }

            .card_sample .e-card .e-card-content > div {
                margin-bottom: 0.5rem;
                font-size: 0.875rem;
                line-height: 1.4;
                word-break: break-word;
            }

                .card_sample .e-card .e-card-content > div:last-child {
                    margin-bottom: 0;
                }

                .card_sample .e-card .e-card-content > div:first-child {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 0.75rem;
                    flex-wrap: wrap;
                    gap: 0.5rem;
                }

            .card_sample .e-card .e-card-content .view-icon {
                background: linear-gradient(135deg, #2B9BD1 0%, #1E7BA8 100%);
                color: white;
                border: none;
                padding: 0.375rem 0.75rem;
                border-radius: 0.375rem;
                font-size: 0.75rem;
                cursor: pointer;
                transition: all 0.3s ease;
                white-space: nowrap;
                flex-shrink: 0;
                font-weight: 500;
                position: relative;
                overflow: hidden;
                box-shadow: 0 0.125rem 0.25rem rgba(43, 155, 209, 0.2);
                min-width: 4rem;
            }

                .card_sample .e-card .e-card-content .view-icon::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: linear-gradient(135deg, #1E7BA8 0%, #165F87 100%);
                    opacity: 0;
                    transition: opacity 0.3s ease;
                    z-index: -1;
                }

                .card_sample .e-card .e-card-content .view-icon:hover {
                    color: white;
                    transform: translateY(-0.125rem);
                    box-shadow: 0 0.25rem 0.75rem rgba(43, 155, 209, 0.4);
                }

                    .card_sample .e-card .e-card-content .view-icon:hover::before {
                        opacity: 1;
                    }

                .card_sample .e-card .e-card-content .view-icon:active {
                    transform: translateY(0);
                    box-shadow: 0 0.125rem 0.375rem rgba(43, 155, 209, 0.3);
                }

                .card_sample .e-card .e-card-content .view-icon i {
                    margin-right: 0.25rem;
                    font-size: 0.75rem;
                }

            .card_sample .e-card .e-card-content > div:not(:first-child) {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                max-height: 2.8em;
            }

            .card_sample .e-card .e-card-content > div strong {
                font-weight: 600;
                color: #333;
            }

        /* Card Footer Section */
        .card_sample .e-card .e-card-footer {
            padding: 0.75rem 1rem;
            border-top: 1px solid #e0e0e0;
            flex-shrink: 0;
            margin-top: auto;
        }

            .card_sample .e-card .e-card-footer .e-btn {
                width: 100%;
                height: 2.25rem;
                font-size: 0.875rem;
                background: linear-gradient(135deg, #2B9BD1 0%, #1E7BA8 100%);
                color: white;
                border: none;
                border-radius: 0.375rem;
                cursor: pointer;
                transition: all 0.3s ease;
                font-weight: 500;
                position: relative;
                overflow: hidden;
                box-shadow: 0 0.125rem 0.25rem rgba(43, 155, 209, 0.2);
                min-height: 2.25rem;
            }

                .card_sample .e-card .e-card-footer .e-btn::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: linear-gradient(135deg, #1E7BA8 0%, #165F87 100%);
                    opacity: 0;
                    transition: opacity 0.3s ease;
                    z-index: -1;
                }

                .card_sample .e-card .e-card-footer .e-btn:hover {
                    transform: translateY(-0.0625rem);
                    box-shadow: 0 0.25rem 0.5rem rgba(43, 155, 209, 0.3);
                }

                    .card_sample .e-card .e-card-footer .e-btn:hover::before {
                        opacity: 1;
                    }

                .card_sample .e-card .e-card-footer .e-btn:active {
                    transform: translateY(0);
                    box-shadow: 0 0.125rem 0.25rem rgba(43, 155, 209, 0.2);
                }

/* Status Badge */
.status-active {
    background-color: #ffeaa7;
    color: #d63031;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -0.9375rem;
}

.col-lg-3.col-md-4.col-sm-6 {
    padding: 0.9375rem;
    display: flex;
    flex-direction: column;
}

    .col-lg-3.col-md-4.col-sm-6 .card_sample {
        height: 100%;
    }

/* ============================================================================
   BUTTON STYLES - MATERIAL DESIGN
   ============================================================================ */

/* Standard Button Variations */
.e-btn.primary {
    background: linear-gradient(135deg, #2B9BD1 0%, #1E7BA8 100%);
}

.e-btn.secondary {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
}

.e-btn.outline {
    background: transparent;
    border: 2px solid #2B9BD1;
    color: #2B9BD1;
}

    .e-btn.outline:hover {
        background: #2B9BD1;
        color: white;
    }


/* Blue branding button styles matching your interface */
.material-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .material-btn.primary {
        background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
        color: white;
        box-shadow: 0 3px 10px rgba(2, 136, 209, 0.3);
    }

        .material-btn.primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #29b6f6 0%, #0288d1 50%, #01579b 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
        }

        .material-btn.primary:hover::before {
            opacity: 1;
        }

        .material-btn.primary:hover {
            box-shadow: 0 6px 20px rgba(2, 136, 209, 0.4);
            transform: translateY(-2px);
        }

        .material-btn.primary:active {
            transform: translateY(0);
            box-shadow: 0 3px 10px rgba(2, 136, 209, 0.3);
        }

            .material-btn.primary:active::before {
                opacity: 1;
                background: linear-gradient(135deg, #0288d1 0%, #01579b 50%, #0d47a1 100%);
            }

    .material-btn.danger {
        background: linear-gradient(135deg, #ff5722 0%, #f44336 50%, #d32f2f 100%);
        color: white;
        box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
    }

        .material-btn.danger::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #f44336 0%, #d32f2f 50%, #b71c1c 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
        }

        .material-btn.danger:hover::before {
            opacity: 1;
        }

        .material-btn.danger:hover {
            box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
            transform: translateY(-2px);
        }

        .material-btn.danger:active {
            transform: translateY(0);
            box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
        }

    .material-btn span, .material-btn i {
        position: relative;
        z-index: 1;
    }

    .material-btn i {
        font-size: 14px;
    }

    .material-btn.primary:focus {
        outline: 2px solid #4fc3f7;
        outline-offset: 2px;
    }

    .material-btn.danger:focus {
        outline: 2px solid #ff5722;
        outline-offset: 2px;
    }

    .material-btn:disabled {
        background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
        color: #7f8c8d;
        cursor: not-allowed;
        box-shadow: none;
    }

        .material-btn:disabled:hover {
            transform: none;
        }

        .material-btn:disabled::before {
            display: none;
        }

    .material-btn.secondary {
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
        color: #0288d1;
        border: 1px solid #bdc3c7;
    }

        .material-btn.secondary:hover {
            background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
            border-color: #0288d1;
        }

    .material-btn.outline {
        background: linear-gradient(135deg, transparent 0%, transparent 100%);
        color: #0288d1;
        border: 2px solid;
        border-image: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%) 1;
    }

        .material-btn.outline:hover {
            background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
            color: white;
            border-image: none;
            border: 2px solid transparent;
        }

    .material-btn.small {
        padding: 6px 12px;
        font-size: 12px;
    }

    .material-btn.large {
        padding: 12px 24px;
        font-size: 16px;
    }

/* Accept Button */
.accept-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
    position: relative;
    overflow: hidden;
}

    .accept-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #29b6f6 0%, #0288d1 50%, #01579b 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .accept-btn:hover::before {
        opacity: 1;
    }

    .accept-btn:hover {
        box-shadow: 0 6px 16px rgba(2, 136, 209, 0.4);
        transform: translateY(-2px);
    }

    .accept-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(2, 136, 209, 0.3);
    }

        .accept-btn:active::before {
            opacity: 1;
            background: linear-gradient(135deg, #0288d1 0%, #01579b 50%, #0d47a1 100%);
        }

    .accept-btn:focus {
        outline: 2px solid #4fc3f7;
        outline-offset: 2px;
    }

    .accept-btn i {
        font-size: 12px;
        margin-right: 4px;
        position: relative;
        z-index: 1;
    }

    .accept-btn span {
        position: relative;
        z-index: 1;
    }

/* Footer Button Container */
.e-footer-content {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Syncfusion Button Overrides */
.e-btn.e-primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%) !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(2, 136, 209, 0.3) !important;
    position: relative;
    overflow: hidden;
}

    .e-btn.e-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #29b6f6 0%, #0288d1 50%, #01579b 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .e-btn.e-primary:hover::before {
        opacity: 1;
    }

    .e-btn.e-primary:hover {
        box-shadow: 0 6px 20px rgba(2, 136, 209, 0.4) !important;
        transform: translateY(-2px) !important;
    }

.e-btn.e-danger {
    background: linear-gradient(135deg, #ff5722 0%, #f44336 50%, #d32f2f 100%) !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3) !important;
    position: relative;
    overflow: hidden;
}

    .e-btn.e-danger::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #f44336 0%, #d32f2f 50%, #b71c1c 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .e-btn.e-danger:hover::before {
        opacity: 1;
    }

    .e-btn.e-danger:hover {
        box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4) !important;
        transform: translateY(-2px) !important;
    }

/* ============================================================================
   ERROR UI
   ============================================================================ */
#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;
    }

/* ============================================================================
   VALIDATION
   ============================================================================ */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ============================================================================
   TYPOGRAPHY & UTILITIES
   ============================================================================ */
.black-text {
    color: black;
}

.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.8em;
    line-height: 1.4;
}

.text-truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================================
   USER PROFILE & BUTTONS
   ============================================================================ */
.btn-user {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 35px;
    margin-top: 10px;
}

.user-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-icon,
.btn-profile {
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .btn-icon:hover {
        background-color: #f0f0f0;
        color: #007bff;
    }

    .btn-profile:hover {
        background-color: #e0e0e0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.btn-icon {
    margin-right: 5px;
}


.nav-title,
.nav-title:hover {
    text-decoration: none;
    color: black;
}

/* ============================================================================
   DROPDOWN
   ============================================================================ */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}

    .dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
    }

.dropdown-item {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

/* ============================================================================
   SFGRID MODERNIZATION
   ============================================================================ */
.repair-grid,
.sf-grid {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.repair-grid {
    flex: 1;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
    padding: 15px;
}

.sf-grid {
    box-shadow: 0px 6px 10px rgba(0,0,0,0.1);
}

    .sf-grid .e-headercell,
    .sf-grid .e-rowcell {
        padding: 12px;
        font-size: 14px;
        color: #333;
    }

    .sf-grid .e-headercell {
        background-color: #f4f7fb;
        font-weight: bold;
        border-bottom: 2px solid #ddd;
    }

    .sf-grid .e-rowcell {
        border-bottom: 1px solid #eee;
    }

    .sf-grid .e-row:hover {
        background-color: #f0f8ff;
    }

/* ============================================================================
   STATUS & PRIORITY BADGES
   ============================================================================ */
.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: inline-block;
}

.status-gif {
    width: 45px;
    height: 45px;
    margin-left: 8px;
    vertical-align: middle;
    object-fit: cover;
}

.status-inspection {
    background-color: #5bc0de;
    color: black;
}

.status-awaiting-confirm {
    background-color: #ffca2c;
    color: black;
}

.status-awaiting-sparepart {
    background-color: #ff8c42;
    color: black;
}

.status-repairing {
    background-color: #66afe9;
    color: black;
}

.status-finished {
    background-color: #66bb6a;
    color: black;
}

.status-rejected {
    background-color: #f44336;
    color: black;
}

.status-unrepairable {
    background-color: #9e9e9e;
    color: black;
}

.status-thirdParty {
    background-color: #26a69a;
    color: black;
}

.priority-low {
    background-color: #28a745;
}

.priority-normal {
    background-color: #ffc107;
}

.priority-high {
    background-color: #dc3545;
}

.priority-badge {
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    display: inline-block;
}

/* ============================================================================
   BOTTOM NAVIGATION BAR
   ============================================================================ */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
}

    .bottom-nav-bar .nav-link {
        text-decoration: none;
        color: #333;
        font-size: 14px;
        text-align: center;
        flex: 1;
        transition: color 0.3s, transform 0.3s;
    }

        .bottom-nav-bar .nav-link i {
            display: block;
            font-size: 20px;
            margin-bottom: 4px;
            transition: color 0.3s;
        }

        .bottom-nav-bar .nav-link span {
            display: block;
            font-size: 12px;
        }

        .bottom-nav-bar .nav-link:hover,
        .bottom-nav-bar .nav-link.active {
            color: #007bff;
        }

        .bottom-nav-bar .nav-link:hover {
            transform: scale(1.1);
        }

/* ============================================================================
   SETTINGS DRAWER
   ============================================================================ */
.settings-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    background-color: #fff;
    border-left: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 999;
}

    .settings-drawer.show {
        transform: translateX(0);
    }

    .settings-drawer.hide {
        transform: translateX(100%);
    }

.drawer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f7f7f7;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    text-align: center;
}

    .profile-img img {
        width: 100%;
        height: auto;
        display: block;
    }

.profile-info {
    text-align: center;
}

.profile-title {
    font-size: 18px;
    margin: 0;
}

.profile-subtitle {
    font-size: 14px;
    margin: 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

    .drawer-item i {
        margin-right: 10px;
        font-size: 20px;
        color: #333;
    }

    .drawer-item:hover {
        background-color: #f1f1f1;
    }

.profile-picture {
    height: 350px;
    width: 350px;
    object-fit: cover;
}

/* ============================================================================
   PROFILE / DETAIL REPORT
   ============================================================================ */
.emp-profile {
    padding: 5%;
    margin-top: 5%;
    margin-bottom: 5%;
    background: #fff;
}

.profile-img .file {
    position: relative;
    overflow: hidden;
    margin-top: -20%;
    width: 70%;
    border: none;
    font-size: 15px;
    background: #212529b8;
}

    .profile-img .file input {
        position: absolute;
        opacity: 0;
        right: 0;
        top: 0;
    }

.profile-head h5 {
    color: #333;
}

.profile-head h6 {
    color: #0062cc;
}

.profile-edit-btn {
    border: none;
    border-radius: 1.5rem;
    width: 80%;
    padding: 3%;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
}

.proile-rating {
    font-size: 12px;
    color: #818182;
    margin-top: 5%;
}

    .proile-rating span {
        color: #495057;
        font-size: 15px;
        font-weight: 600;
    }

.profile-head .nav-tabs {
    margin-bottom: 5%;
}

    .profile-head .nav-tabs .nav-link {
        font-weight: 600;
        border: none;
    }

        .profile-head .nav-tabs .nav-link.active {
            border: none;
            border-bottom: 2px solid #0062cc;
        }

.profile-work {
    padding: 20%;
    margin-top: -10%;
}

    .profile-work p {
        font-size: 12px;
        color: #818182;
        font-weight: 600;
        margin-top: 10%;
    }

    .profile-work a {
        text-decoration: none;
        color: #495057;
        font-weight: 600;
        font-size: 14px;
    }

    .profile-work ul {
        list-style: none;
    }

.profile-tab label {
    font-weight: 600;
}

.profile-tab p {
    font-weight: 600;
    color: #0062cc;
}

.profile-tab .tab-pane {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.profile-tab .row {
    margin-bottom: 15px;
}

.profile-tab .col-md-6 {
    padding-bottom: 10px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

@keyframes goldShimmer {
    0% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    }

    100% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
    }
}

@keyframes silverShimmer {
    0% {
        box-shadow: 0 2px 8px rgba(156, 163, 175, 0.4);
    }

    100% {
        box-shadow: 0 4px 16px rgba(156, 163, 175, 0.6);
    }
}

@keyframes bronzeShimmer {
    0% {
        box-shadow: 0 2px 8px rgba(205, 133, 63, 0.4);
    }

    100% {
        box-shadow: 0 4px 16px rgba(205, 133, 63, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS - CARD GRID
   ============================================================================ */
@media screen and (min-width: 1200px) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media screen and (min-width: 1090px) and (max-width: 1199px), screen and (min-width: 992px) and (max-width: 1089px) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media screen and (max-width: 767px) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================================================
   ZOOM-SPECIFIC ADJUSTMENTS (DPI-based)
   ============================================================================ */
@media screen and (min-resolution: 1.1dppx) and (max-resolution: 1.24dppx) and (min-width: 1090px), screen and (min-resolution: 1.25dppx) and (max-resolution: 1.49dppx) and (min-width: 992px) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media screen and (min-resolution: 1.1dppx) and (max-resolution: 1.24dppx) and (min-width: 1090px) {
    .card_sample .e-card .e-card-content .view-icon {
        font-size: 0.78125rem;
        padding: 0.40625rem 0.8125rem;
    }
}

@media screen and (min-resolution: 1.25dppx) and (max-resolution: 1.49dppx) and (min-width: 992px) {
    .card_sample .e-card .e-card-content .view-icon {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }
}

@media screen and (min-resolution: 1.5dppx) and (max-resolution: 1.74dppx) and (min-width: 768px) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card_sample .e-card .e-card-content .view-icon {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media screen and (min-resolution: 1.75dppx) and (max-resolution: 1.99dppx), screen and (min-resolution: 2dppx) {
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* JavaScript zoom detection helper classes */
.zoom-100 .col-lg-3.col-md-4.col-sm-6 {
    flex: 0 0 25%;
    max-width: 25%;
}

.zoom-110 .col-lg-3.col-md-4.col-sm-6,
.zoom-125 .col-lg-3.col-md-4.col-sm-6 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.zoom-150 .col-lg-3.col-md-4.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.zoom-175 .col-lg-3.col-md-4.col-sm-6,
.zoom-200 .col-lg-3.col-md-4.col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ============================================================================
   RESPONSIVE STYLES - GENERAL
   ============================================================================ */
@media (min-width: 1400px) {
    .card_sample .e-card .e-card-header .e-card-header-title {
        font-size: 1rem;
    }

    .card_sample .e-card .e-card-header .e-card-sub-title {
        font-size: 0.875rem;
    }

    .card_sample .e-card .e-card-content,
    .card_sample .e-card .e-card-content > div {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .bottom-nav-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

@media (max-width: 1200px) {
    .dashboard-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-schedules-card,
    .dashboard-clients-card {
        height: auto;
        min-height: 400px;
    }

    .compact-card {
        height: 300px;
    }

    .label-text {
        font-size: 9px;
    }

    .value-text {
        font-size: 9px;
        max-width: 100px;
    }
}

@media (max-width: 1024px) {
    .hide-on-responsive {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-overview-container {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-card {
        width: 100%;
        max-width: 300px;
        padding-left: 60px;
    }

    .sales-chart-grid-container {
        flex-direction: column;
    }

    .compact-card {
        height: 280px;
    }

    .card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .value-text {
        text-align: left;
        max-width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-container {
        padding: 15px;
    }

    .navigate-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .button-container {
        flex-direction: column;
        gap: 5px;
    }

    h3 {
        font-size: 16px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    table th, table td {
        padding: 12px;
    }

    .image-container {
        width: 80px;
        height: 90px;
    }

    .card_sample,
    .card_sample .e-card {
        min-height: 28rem;
    }

        .card_sample .e-card .e-card-image {
            height: 7.5rem;
            min-height: 7.5rem;
            max-height: 7.5rem;
        }

        .card_sample .e-card .e-card-header {
            min-height: 6rem;
        }

        .card_sample .e-card .e-card-content {
            min-height: 10rem;
        }

    .dashboard-main-container {
        padding: 16px;
    }

    .dashboard-clients-table-header,
    .dashboard-client-row {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 12px;
        padding: 12px 16px;
    }

    .dashboard-client-name {
        font-size: 14px;
    }

    .dashboard-client-subject {
        font-size: 12px;
    }

    .dashboard-total-count {
        font-size: 18px;
    }

    .dashboard-rank-badge {
        min-width: 40px;
        height: 24px;
        margin-right: 8px;
    }

    .dashboard-client-avatar,
    .dashboard-client-profile-image {
        width: 30px;
        height: 30px;
    }

    /* Modern Form Group Responsive */
    .form-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem;
        width: 100%;
    }

        .form-group > *,
        .form-group > div,
        .form-group .image-container,
        .form-group .e-footer-content {
            width: 100% !important;
            max-width: 100% !important;
            grid-column: unset !important;
            margin: 0 !important;
        }

    .image-container {
        padding: 0.4rem;
        min-height: 80px;
        border-width: 1px;
    }

        .image-container img {
            width: 100%;
            max-width: 180px;
            height: 80px;
        }

    .image-preview {
        width: 100%;
        max-width: 180px;
        height: 80px;
    }

    .image-upload-instructions {
        font-size: 0.55rem;
        padding: 4px 6px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .file-upload-overlay {
        opacity: 0.4;
        background: rgba(0, 0, 0, 0.05);
    }

        .file-upload-overlay:hover {
            opacity: 0.6;
        }

    .file-upload-label {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        background-color: rgba(0, 123, 255, 0.8);
    }

    .image-filename {
        font-size: 0.6rem;
        opacity: 1;
        bottom: 3px;
        padding: 3px 6px;
    }

    .crop-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
        top: 3px;
        right: 3px;
    }

    .button-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 0.4rem;
    }

        .button-container button {
            flex: 1;
            width: auto !important;
            padding: 0.6rem 0.4rem;
            font-size: 0.85rem;
        }

    .e-footer-content {
        margin-top: 0.5rem;
        justify-content: center;
    }

    .filter-card-slider {
        max-width: 100%;
        gap: 10px;
        padding: 8px 0;
        margin-bottom: 8px;
    }

    .filter-card {
        width: 75px;
        height: 75px;
        padding: 6px 4px 4px 4px;
    }

        .filter-card img {
            width: 52px;
            height: 52px;
        }

        .filter-card div {
            font-size: 0.7rem;
        }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        margin: 0 3px;
    }

    textarea,
    .e-multi-line-input {
        min-height: 50px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px !important;
        border: 1px solid #ddd !important;
        padding: 0.5rem !important;
    }

    input[type="text"],
    .e-input,
    .e-textbox,
    .e-input-group,
    .e-float-input {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
        border-radius: 4px !important;
    }

    .e-ddl,
    .e-combobox,
    .e-dropdownbase {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .e-float-input.e-control-wrapper {
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .card-header h4 {
        font-size: 1.25rem;
    }

    .card-body .form-check {
        font-size: 0.875rem;
    }

    .card-body .form-check-label {
        display: flex;
        align-items: center;
    }

    .card-body .form-check-input {
        margin-right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .auth-form-panel {
        padding: 1rem 0.75rem;
    }

    .auth-form-wrapper {
        padding: 1.25rem 1rem;
        border-radius: 20px;
    }

    .auth-mobile-logo-wrapper {
        margin-bottom: 1rem;
    }

    .auth-mobile-brand-logo {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

        .auth-mobile-brand-logo svg {
            width: 26px;
            height: 26px;
        }

    .auth-mobile-brand-title {
        font-size: 18px;
    }

    .auth-welcome-title {
        font-size: 22px;
    }

    .auth-welcome-subtitle {
        font-size: 12px;
    }

    .auth-input-group {
        margin-bottom: 0.75rem;
    }

    .auth-options-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .auth-remember-label,
    .auth-forgot-link {
        font-size: 12px;
    }

    .auth-footer-section {
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    .emoji-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 150px;
    }

    .page.expand {
        margin-left: 150px;
    }

    .my-style {
        min-width: 5%;
    }

    .card-body {
        width: 100%;
    }

    .validation-message {
        height: inherit;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
    }

    .text-center {
        margin-bottom: 1rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .btn-primary {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .profile-head h5 {
        font-size: 1.125rem;
    }

    .form-floating input {
        font-size: 0.75rem;
    }

    .card_sample,
    .card_sample .e-card {
        min-height: 26rem;
    }

        .card_sample .e-card .e-card-image {
            height: 6.5rem;
            min-height: 6.5rem;
            max-height: 6.5rem;
        }

        .card_sample .e-card .e-card-header {
            min-height: 5.5rem;
        }

        .card_sample .e-card .e-card-content {
            min-height: 9rem;
        }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    .navigate-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .repair-details p {
        font-size: 14px;
    }

    h3 {
        font-size: 14px;
    }

    h4 {
        font-size: 18px;
    }

    .image-container {
        width: 70px;
        height: 80px;
    }

    table th, table td {
        padding: 8px;
        font-size: 14px;
    }

    .button-container {
        gap: 3px;
    }

    .form-group {
        gap: 0.4rem;
    }

    .image-container {
        padding: 0.3rem;
        min-height: 70px;
    }

        .image-container img {
            max-width: 160px;
            height: 70px;
        }

    .image-preview {
        max-width: 160px;
        height: 70px;
    }

    .image-upload-instructions {
        font-size: 0.5rem;
        padding: 3px 5px;
        margin-bottom: 3px;
    }

    .file-upload-label {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .crop-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .image-container > div {
        width: 100% !important;
        max-width: 160px !important;
        height: 70px !important;
        padding: 0.3rem;
    }

        .image-container > div i {
            font-size: 22px !important;
            margin-bottom: 4px !important;
        }

        .image-container > div p {
            font-size: 0.65rem !important;
            margin: 2px 0 !important;
            line-height: 1.2;
        }

    .filter-card {
        width: 70px;
        height: 70px;
    }

        .filter-card img {
            width: 48px;
            height: 48px;
        }

        .filter-card div {
            font-size: 0.65rem;
        }

    .slider-arrow {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .button-container button {
        padding: 0.55rem 0.3rem;
        font-size: 0.8rem;
    }

    .e-footer-content {
        margin-top: 0.4rem;
    }

    textarea,
    .e-multi-line-input {
        min-height: 45px !important;
        font-size: 0.8rem !important;
        padding: 0.4rem !important;
    }

    input[type="text"],
    .e-input,
    .e-textbox {
        padding: 0.4rem !important;
        font-size: 0.8rem !important;
    }

    .image-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }
}

@media (max-width: 450px) {
    .listview-template.e-listview #list-logo {
        display: none;
    }

    .emoji-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .emoji-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 390px) {
    .form-group {
        gap: 0.3rem;
    }

    .image-container {
        padding: 0.25rem;
        min-height: 65px;
    }

        .image-container img {
            max-width: 150px;
            height: 65px;
        }

    .image-preview {
        max-width: 150px;
        height: 65px;
    }

    .image-upload-instructions {
        font-size: 0.48rem;
        padding: 3px 4px;
        margin-bottom: 3px;
    }

    .image-container > div {
        max-width: 150px !important;
        height: 65px !important;
    }

        .image-container > div i {
            font-size: 20px !important;
        }

        .image-container > div p {
            font-size: 0.6rem !important;
        }

    .filter-card {
        width: 65px;
        height: 65px;
    }

        .filter-card img {
            width: 45px;
            height: 45px;
        }

        .filter-card div {
            font-size: 0.6rem;
        }

    .button-container button {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }

    textarea,
    .e-multi-line-input {
        min-height: 42px !important;
        font-size: 0.75rem !important;
    }

    input[type="text"],
    .e-input,
    .e-textbox {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 375px) {
    .auth-form-wrapper {
        padding: 1rem 0.875rem;
    }

    .auth-welcome-title {
        font-size: 20px;
    }

    .auth-mobile-brand-title {
        font-size: 16px;
    }

    .auth-mobile-brand-logo {
        width: 45px;
        height: 45px;
    }

        .auth-mobile-brand-logo svg {
            width: 24px;
            height: 24px;
        }
}

@media (max-height: 700px) {
    .auth-form-wrapper {
        padding: 1.25rem 1.5rem;
        max-height: 98vh;
    }

    .auth-mobile-logo-wrapper {
        margin-bottom: 0.875rem;
    }

    .auth-welcome-header {
        margin-bottom: 1rem;
    }

    .auth-input-group {
        margin-bottom: 0.75rem;
    }

    .auth-footer-section {
        margin-top: 1rem;
    }
}

@media (max-height: 600px) {
    .auth-form-wrapper {
        padding: 1rem 1.25rem;
    }

    .auth-mobile-brand-logo {
        width: 45px;
        height: 45px;
    }

        .auth-mobile-brand-logo svg {
            width: 24px;
            height: 24px;
        }

    .auth-mobile-brand-title {
        font-size: 16px;
    }

    .auth-welcome-title {
        font-size: 20px;
    }

    .auth-welcome-subtitle {
        font-size: 11px;
    }

    .auth-input-group {
        margin-bottom: 0.625rem;
    }

    .auth-form-input {
        padding: 0.625rem 0.75rem 0.625rem 2.25rem;
        font-size: 13px;
    }

    .auth-submit-button {
        padding: 0.7rem;
        font-size: 13px;
    }

    .auth-footer-section {
        margin-top: 0.75rem;
    }
}
