/* =============================================
   Furniture ERP - Custom Styles
   ============================================= */

/*
 * Override Line Awesome @font-face to use local fonts.
 * backend-plugin.min.css points these to a remote CDN which causes CORS errors
 * on localhost. These rules load last and win over the bundled remote URLs.
 */
@font-face {
    font-family: 'Line Awesome Free';
    font-style: normal;
    font-weight: 900;
    src: url('../vendor/line-awesome/dist/line-awesome/fonts/la-solid-900.woff2') format('woff2'),
         url('../vendor/line-awesome/dist/line-awesome/fonts/la-solid-900.woff') format('woff'),
         url('../vendor/line-awesome/dist/line-awesome/fonts/la-solid-900.ttf') format('truetype');
}

/* Flash Messages */
.alert {
    border-radius: 8px;
}

/* Table action buttons */
.table .btn-sm {
    padding: 3px 8px;
    font-size: 12px;
}

/* Badge overrides for BS5 compatibility */
.badge-primary   { background-color: var(--bs-primary) !important; }
.badge-success   { background-color: var(--bs-success) !important; }
.badge-danger    { background-color: var(--bs-danger) !important; }
.badge-warning   { background-color: var(--bs-warning) !important; color: #000 !important; }
.badge-secondary { background-color: var(--bs-secondary) !important; }

/* Sidebar active menu fix */
.iq-sidebar-menu .iq-menu li.active > a {
    color: var(--bs-primary);
}

/* Card header border */
.card-header {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

/* Floating label fix for BS5 */
/* .floating-label {
    position: relative;
}
.floating-label .floating-input {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}
.floating-label label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease;
}
.floating-label .floating-input:focus ~ label,
.floating-label .floating-input:not(:placeholder-shown) ~ label {
    top: 0.2rem;
    font-size: 0.72rem;
    color: var(--bs-primary);
} */

/* Responsive table spacing */
.table-responsive {
    border-radius: 8px;
}

/* Form section headings */
.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Status badges */
.status-active   { color: #28a745; font-weight: 600; }
.status-inactive { color: #dc3545; font-weight: 600; }

/* Page loader override */
#loading {
    background: #fff;
}

.filter-input, .filter-btn {
    height: 40px;
    border-radius: 6px;
}

.form-select {
    border: 1px solid #DCDFE8;

    &:focus {
        color: #01041b;
        border-color: #32BDEA;
        box-shadow: none;
    }
}

.logo-title {
    margin-bottom: 0;
    color: #01041b;
}

.iq-sidebar-logo a {
    align-items: center;
}

.signin-btn {
    height: 45px;
    padding: 0 50px;
    margin-top: 10px;
}

.login-content .auth-card .auth-content, .login-content .auth-card {
    min-height: 450px;
}