@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

/* Base Styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
}

body {
    padding-bottom: 75px;
}

/* 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;
}

/* 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 */
.black-text {
    color: black;
}

/* Buttons & User */
.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;
}

/* Navbar */
.navbar-logo {
    height: 30px;
    width: 80px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.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 {
    text-align: center;
    width: 150px;
    height: 150px;
}

    .profile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .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;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .bottom-nav-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

@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; /* Change to one column for screens smaller than 600px */
    }

    .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;
    }
}

@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;
    }
}

@media (max-width: 600px) {
    .emoji-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@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;
    }
}

@media (max-width: 1200px) {
    .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: 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: 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);
    }
}

/* Utility */
.e-attr {
    font-family: 'Khmer OS';
}

/* 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;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .dashboard-schedules-card,
    .dashboard-clients-card {
        max-height: 500px;
    }
}

@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);
    }
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .dashboard-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-schedules-card,
    .dashboard-clients-card {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .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;
    }
}
/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-content-wrapper {
        grid-template-columns: 1fr;
    }

    .dashboard-schedules-card,
    .dashboard-clients-card {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .dashboard-main-container {
        padding: 10px;
    }

    .dashboard-clients-table-header,
    .dashboard-client-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 8px;
        padding: 8px 12px;
    }

    .dashboard-rank-badge {
        min-width: 40px;
        height: 24px;
        margin-right: 8px;
    }

    .dashboard-client-avatar,
    .dashboard-client-profile-image {
        width: 30px;
        height: 30px;
    }
}
/* Responsive Design - Tablet and Below */
@media (max-width: 1024px) {
    .auth-form-wrapper {
        max-width: 500px;
        padding: 2rem 1.75rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .auth-form-panel {
        padding: 1.5rem 1rem;
    }

    .auth-form-wrapper {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .auth-mobile-logo-wrapper {
        margin-bottom: 1.25rem;
    }

    .auth-mobile-brand-logo {
        width: 55px;
        height: 55px;
    }

        .auth-mobile-brand-logo svg {
            width: 28px;
            height: 28px;
        }

    .auth-mobile-brand-title {
        font-size: 20px;
    }

    .auth-welcome-header {
        margin-bottom: 1.25rem;
    }

    .auth-welcome-title {
        font-size: 24px;
    }

    .auth-welcome-subtitle {
        font-size: 13px;
    }

    .auth-input-group {
        margin-bottom: 0.875rem;
    }

    .auth-input-label {
        font-size: 12px;
        margin-bottom: 0.375rem;
    }

    .auth-form-input {
        padding: 0.7rem 0.875rem 0.7rem 2.5rem;
        font-size: 14px;
    }

    .auth-input-icon {
        left: 0.875rem;
        width: 18px;
        height: 18px;
    }

    .auth-options-row {
        margin-bottom: 1rem;
    }

    .auth-submit-button {
        padding: 0.8rem;
        font-size: 14px;
    }

    .auth-footer-section {
        margin-top: 1.25rem;
    }

    .auth-footer-divider {
        margin-bottom: 0.75rem;
    }

    .auth-footer-copyright {
        font-size: 10px;
    }

    .auth-footer-brand-name {
        font-size: 9px;
    }
}

/* Small Mobile Devices */
@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;
    }
}

/* Extra Small Devices */
@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;
        }
}

/* Height-based optimizations for very short screens */
@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;
    }
}
@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);
    }
}

/* Modern Mobile Responsive Styles */
@media (max-width: 768px) {
    .form-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem;
        width: 100%;
    }

        /* Force all children to full width */
        .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;
    }

    /* Modern input styling */
    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;
    }

    /* ComboBox full width */
    .e-ddl,
    .e-combobox,
    .e-dropdownbase {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Float labels */
    .e-float-input.e-control-wrapper {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .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;
    }

    /* Placeholder styles */
    .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;
    }

    /* Compact inputs */
    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;
    }
}

/* Extra small devices */
@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;
    }
}