/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --bg-color: #f1f2f6;
    --card-bg: #ffffff;
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism effects */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border-radius: 1rem;
}

/* Login Page Styling */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    color: white;
}

/* Sidebar Styling */
.sidebar {
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 280px;
    z-index: 100;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0.12rem 0.75rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 71, 87, 0.1);
    color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Estado cuando el menú lateral está oculto a la izquierda */
body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* Top Navbar */
.top-navbar {
    background: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-box.primary { background: rgba(255, 71, 87, 0.1); color: var(--primary-color); }
.icon-box.success { background: rgba(46, 213, 115, 0.1); color: #2ed573; }
.icon-box.warning { background: rgba(255, 165, 2, 0.1); color: #ffa502; }
.icon-box.info { background: rgba(30, 144, 255, 0.1); color: #1e90ff; }

/* Buscador resaltado en Facturación */
.search-pos-box {
    background-color: #f8f9fc;
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(47, 53, 66, 0.06);
    transition: all 0.25s ease;
}

.search-pos-box:hover {
    border-color: #ff6b81;
    background-color: #fff;
}

.search-pos-box:focus-within {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.18);
}

.search-pos-box .form-control:focus {
    box-shadow: none;
}

/* Efecto hover azul en tarjetas de producto de Facturación */
.pos-product-card {
    cursor: pointer;
    border: 2px solid #dee2e6 !important;
    border-radius: 0.75rem !important;
    background-color: #ffffff !important;
    transition: all 0.18s ease-in-out !important;
    position: relative;
    overflow: hidden;
}

.pos-product-img-box {
    position: relative;
    transition: all 0.18s ease-in-out;
}

/* Capa translúcida sobre la imagen al pasar el mouse para que se note en toda la tarjeta sin tapar la foto */
.pos-product-img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 71, 87, 0);
    border-radius: 0.5rem;
    pointer-events: none;
    transition: background-color 0.18s ease-in-out;
}

.pos-product-card:hover {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4) !important;
    transform: translateY(-3px);
}

.pos-product-card:hover .pos-product-img-box::after {
    background-color: rgba(255, 71, 87, 0.2);
}

.pos-product-card:hover .pos-product-title,
.pos-product-card:hover .pos-product-price {
    color: #ffffff !important;
}

.pos-product-card:active {
    transform: scale(0.97);
    background-color: #ff6b81 !important;
}
