/* 
   CLARO THEME (BE STYLE) 
   NUCLEAR OPTION RESTORED (Layout Fix)
   V7: Dark Sidebar (AdminLTE Standard), Red Header (Claro), Functional Search Hidden Logic
*/

:root {
    --claro-red: #D61F26;
    --claro-red-hi: #E30613;
    --claro-red-dark: #B10F14;
    --claro-grey: #666666;
    --sidebar-bg: #222d32;
    /* AdminLTE Default Dark */
    --sidebar-hover: #1e282c;
    /* AdminLTE Default Hover */
    --app-bg: #ECF0F5;
    /* AdminLTE Default BG */
    --header-height: 50px;
    --sidebar-width: 230px;
}

/* 1. RESET TYPES */
html,
body {
    height: 100% !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--app-bg) !important;
}

/* 2. HEADER FIXED TOP */
.main-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: var(--header-height) !important;
    z-index: 2000 !important;
    background: linear-gradient(180deg, var(--claro-red-hi) 0%, var(--claro-red) 55%, var(--claro-red-dark) 100%) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .logo {
    width: var(--sidebar-width) !important;
    height: var(--header-height) !important;
    line-height: var(--header-height) !important;
    background: transparent !important;
    float: left !important;
    padding: 0 15px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.logo-favicon {
    height: 24px;
    width: auto;
    margin-right: 8px;
}

.main-header .navbar {
    margin-left: var(--sidebar-width) !important;
    min-height: var(--header-height) !important;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-toggle {
    color: #fff !important;
    font-size: 16px;
    padding: 15px !important;
    border: none !important;
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* 3. CLARO SEARCH BAR */
.claro-search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 20px;
}

.claro-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 2px 5px 2px 15px;
    width: 100%;
    max-width: 450px;
    height: 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.claro-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 13px;
    color: #333;
}

.claro-search-btn {
    background: none;
    border: none;
    color: var(--claro-red);
    font-size: 14px;
    cursor: pointer;
    padding: 0 8px;
}

/* HIDE ORIGINAL SEARCH BARS (VISUALLY) BUT KEEP IN DOM */
.dataTables_filter,
.toolbar-right {
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* 4. NAVBAR CUSTOM MENU */
.navbar-custom-menu>.nav>li>a {
    color: #fff !important;
    height: var(--header-height);
    line-height: var(--header-height);
    padding: 0 15px !important;
    display: block;
}

.navbar-custom-menu>.nav>li>a>span {
    color: #fff !important;
}

.navbar-custom-menu>.nav>li>a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* 5. SIDEBAR FIXED LEFT */
.main-sidebar {
    position: fixed !important;
    top: var(--header-height) !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--sidebar-width) !important;
    height: auto !important;
    min-height: 0 !important;
    background-color: var(--sidebar-bg) !important;
    z-index: 1500 !important;
    overflow-y: auto !important;
}

.sidebar-menu>li>a,
.sidebar-menu .treeview-menu>li>a {
    color: #b8c7ce !important;
    /* AdminLTE Default Text Color */
}

.sidebar-menu>li>a:hover {
    color: #fff !important;
}

.sidebar-menu>li:hover>a,
.sidebar-menu>li.active>a {
    background-color: var(--sidebar-hover);
    border-left-color: var(--claro-red-hi);
    color: #fff !important;
}

.sidebar-menu>li>.treeview-menu {
    background: #2c3b41 !important;
}

/* 6. CONTENT WRAPPER */
.content-wrapper {
    margin-left: var(--sidebar-width) !important;
    padding-top: calc(var(--header-height) + 20px) !important;
    background-color: var(--app-bg) !important;
    min-height: 100vh !important;
    width: auto !important;
}

/* 7. ACTIONS GREY */
.btn-danger {
    background-color: var(--claro-grey) !important;
    border-color: var(--claro-grey) !important;
    color: #fff !important;
}

.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus {
    background-color: #444 !important;
    border-color: #444 !important;
}

/* Responsive */
@media (max-width: 767px) {
    .claro-search-container {
        display: none;
    }

    .content-wrapper {
        margin-left: 0 !important;
    }

    .main-sidebar {
        transform: translate(-230px, 0) !important;
    }

    .sidebar-open .main-sidebar {
        transform: translate(0, 0) !important;
    }

    .sidebar-open .content-wrapper {
        transform: translate(230px, 0) !important;
    }
}

/* Generic Overrides */
.box {
    background: #fff;
    border-radius: 3px;
    border-top: 3px solid #d2d6de;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.box-primary {
    border-top-color: var(--claro-red);
}

.btn-primary {
    background: var(--claro-red);
    border-color: var(--claro-red);
}

.btn-primary:hover {
    background: var(--claro-red-dark);
    border-color: var(--claro-red-dark);
}

input.form-control:focus {
    border-color: var(--claro-red);
    box-shadow: none;
}Jair2010

/* 
   ==========================================================================
   LOGIN PREMIUM STYLES (Requested Fix)
   ========================================================================== 
*/

.login-page-premium {
    background: #f4f6f9;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

.login-card-premium {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin: 0 20px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card-header {
    background: white;
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.login-logo-img {
    max-height: 60px;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.login-subtitle {
    display: block;
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

.login-card-body {
    padding: 2rem;
}

.form-group-premium {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label-premium {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
}

.form-control-premium {
    width: 100%;
    height: 48px;
    padding: 10px 15px 10px 45px; /* space for icon */
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control-premium:focus {
    border-color: var(--claro-red);
    box-shadow: 0 0 0 4px rgba(214, 31, 38, 0.1);
    background: #fff;
    outline: none;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-control-premium:focus + .input-icon {
    color: var(--claro-red);
}

.btn-premium {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--claro-red-hi) 0%, var(--claro-red-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 31, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 31, 38, 0.4);
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
}

.login-footer-premium {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
}

/* Alerts */
.alert-premium {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.alert-premium i {
    font-size: 18px;
    margin-right: 10px;
}

.alert-premium-danger {
    background: #fdeaea;
    color: #d61f26;
    border: 1px solid #fad2d2;
}

.alert-premium-success {
    background: #eafbf0;
    color: #28a745;
    border: 1px solid #c9f0d6;
}
/* 
   ==========================================================================
   LOGIN LAYOUT FIXES (Centering & Banner)
   ========================================================================== 
*/

/* Centering the login card properly */
.login-page-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.login-card-premium {
    margin: 0 auto !important;
    /* Override inline margin-top if any */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    /* Slightly wider for better breathing room */
}

/* Fix banner image integration */
.login-card-header {
    padding: 0;
    /* Remove padding to let image touch edges if full width is desired, or keep centered */
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 20px;
}

.login-logo-img {
    max-width: 100%;
    /* Ensure it doesn't overflow */
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    margin: 0 auto 15px auto;
    object-fit: contain;
    /* Ensure it fits nicely */
}

/* Ensure title and subtitle are still styled nicely if they follow the image */
.login-title {
    margin-top: 10px;
}/* 
   ==========================================================================
   LOGIN LAYOUT FIXES (Centering & Banner)
   ========================================================================== 
*/

/* Centering the login card properly */
.login-page-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
}

.login-card-premium {
    margin: 0 auto !important;
    /* Override inline margin-top if any */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    /* Slightly wider for better breathing room */
}

/* Fix banner image integration */
.login-card-header {
    padding: 0 !important;
    /* Remove padding to let image touch edges */
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    /* Ensure image doesnt spill out */
    border-radius: 12px 12px 0 0;
    /* Match card radius if needed */
}

.login-logo-img {
    width: 100% !important;
    /* Force full width */
    max-width: 100% !important;
    height: auto !important;
    /* Maintain aspect ratio */
    display: block;
    margin: 0;
    object-fit: cover;
    /* Cover the area */
}

/* Ensure title and subtitle are still styled nicely if they follow the image */
.login-title {
    margin-top: 20px;
}/* 
   ==========================================================================
   LOGIN LAYOUT FIXES (Centering & Banner)
   ========================================================================== 
*/

/* Centering the login card properly */
.login-page-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
}

.login-card-premium {
    margin: 0 auto !important;
    /* Override inline margin-top if any */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    /* Slightly wider for better breathing room */
}

/* Fix banner image integration */
.login-card-header {
    padding: 0 !important;
    /* Remove padding to let image touch edges */
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    /* Ensure image doesnt spill out */
    border-radius: 12px 12px 0 0;
    /* Match card radius if needed */
    /* Ensure no extra space below image */
    display: flex;
    flex-direction: column;
}

.login-logo-img {
    width: 100% !important;
    /* Force full width */
    max-width: 100% !important;
    height: auto !important;
    /* Maintain aspect ratio */
    min-height: 150px;
    /* Minimize height if image is too small, optional */
    display: block;
    margin: 0;
    object-fit: cover;
    /* Cover the area */
}

/* Ensure title and subtitle are removed/hidden if they still exist */
.login-title,
.login-subtitle {
    display: none !important;
}/* 
   ==========================================================================
   LOGIN LAYOUT FIXES (Centering & Banner)
   ========================================================================== 
*/

/* Centering the login card properly */
.login-page-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
}

.login-card-premium {
    margin: 0 auto !important;
    /* Override inline margin-top if any */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
}

/* Fix banner image integration */
.login-card-header {
    padding: 0 !important;
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
}

.login-logo-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    /* FIXED HEIGHT to ensure it covers the area deep enough */
    object-fit: cover !important;
    /* Ensure it covers the area without distortion */
    object-position: center;
    /* Center the image content */
    display: block;
    margin: 0;
}

/* Ensure title and subtitle are removed/hidden if they still exist */
.login-title,
.login-subtitle {
    display: none !important;
}/* 
   ==========================================================================
   LOGIN LAYOUT FIXES (Centering & Banner)
   ========================================================================== 
*/

/* Centering the login card properly */
.login-page-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
}

.login-card-premium {
    margin: 0 auto !important;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 480px;
    /* Widened from 420px to 480px */
}

/* Fix banner image integration */
.login-card-header {
    padding: 0 !important;
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
}

.login-logo-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    margin: 0;
}

/* Ensure title and subtitle are removed/hidden if they still exist */
.login-title,
.login-subtitle {
    display: none !important;
}/* 
   ==========================================================================
   LOGIN LAYOUT FIXES (Centering & Banner)
   ========================================================================== 
*/

/* Centering the login card properly */
.login-page-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
}

.login-card-premium {
    margin: 0 auto !important;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 550px;
    /* Widened to 550px */
}

/* Fix banner image integration */
.login-card-header {
    padding: 0 !important;
    background: transparent;
    border: none;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
}

.login-logo-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    /* Increased height for "largo" look */
    object-fit: cover !important;
    object-position: center;
    display: block;
    margin: 0;
}

/* Ensure title and subtitle are removed/hidden if they still exist */
.login-title,
.login-subtitle {
    display: none !important;
}