﻿@font-face {
    font-family: 'nexa book';
    src: url('/fonts/nexa-book.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --primary-color: #009640;
    --secondary-color: #DF1995;
    --tertiary-color: #efefef;
    --white-color: #ffffff;
    --sidebar-width: 280px;
    --topbar-height: 60px;
}

html, body {
    font-family: 'nexa book', sans-serif;
    margin: 0;
    min-height: 100vh;
}

.w-65 {
    width: 65% !important;
}

.w-110px {
    width: 110px !important;
}

.box-shadow {
    box-shadow: 0 0 5px 2px gray;
}

.fs-12px {
    font-size: 12px !important;
}

.border-radius-5px {
    border-radius: 5px;
}

.w-35 {
    width: 35% !important;
}

.bg-gray-light {
    background: #F9F8F9 !important;
}

.btn-iconos {
    width: 70px;
    height: 70px;
    font-size: 34px;
    background: transparent;
    border: none;
    color: rgb(0, 150,64);
}

.h-100 {
    height: 100% !important;
}

.h-140px {
    height: 140px !important;
}

.h-165px {
    height: 165px !important;
}

.h-170px {
    height: 170px !important;
}

.h-182px {
    height: 182px !important;
}

.h-250px {
    height: 250px !important;
}

.mt-1px {
    margin-top: 1px !important;
}

.btn-iconos:hover {
    background: white;
    color: black;
}

.servicios-detalle :hover {
    cursor: pointer;
    color: rgb(0,150,64);
}

body {
    background: url('/imagen/fondo_emprendedores.webp') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    margin: 0;
    min-height: 100vh;
    /*font-family: 'Inter', sans-serif;*/
}

    body.orders-page {
        background: url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?q=80&w=2000&auto=format&fit=crop&ixlib=rb-4.0.1') no-repeat center center fixed;
        background-size: cover;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.92);
        z-index: -1;
    }

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--white-color);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    height: var(--topbar-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    background: var(--white-color);
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-profile {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    /*background: var(--tertiary-color);*/
    overflow: hidden;
}

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 4px solid var(--white-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

.upload-overlay {
    position: absolute;
    bottom: 0;
    right: 45px;
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .upload-overlay:hover {
        transform: scale(1.1);
    }

.user-info {
    padding: 0 1rem;
}

.user-name {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.user-role {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .menu-link i {
        margin-right: 0.75rem;
        font-size: 1.2rem;
    }

    .menu-link:hover, .menu-link.active {
        background: rgba(0, 150, 64, 0.1);
        color: var(--primary-color);
    }

.submenu-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-item .collapse.show + .submenu-icon {
    transform: rotate(-180deg);
}

.submenu {
    list-style: none;
    padding: 0.5rem 0 0.5rem 3.5rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.02);
}

    .submenu a {
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
        color: #666;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

        .submenu a i {
            font-size: 0.5rem;
            margin-right: 0.75rem;
        }

        .submenu a:hover, .submenu a.active {
            color: var(--secondary-color);
            background: rgba(223, 25, 149, 0.05);
            border-radius: 4px;
        }

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.top-navbar {
    height: var(--topbar-height);
    background: var(--white-color);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .top-navbar .btn-link {
        color: var(--primary-color);
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .top-navbar .btn-link:hover {
            background: rgba(0, 150, 64, 0.1);
        }

    .top-navbar .user-welcome {
        color: var(--primary-color);
        font-weight: 500;
    }

    .top-navbar .dropdown-toggle::after {
        display: none;
    }

    .top-navbar .dropdown-toggle img {
        width: 32px;
        height: 32px;
        object-fit: cover;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .dropdown-item:hover {
        background: rgba(223, 25, 149, 0.05);
        color: var(--secondary-color);
    }

.content-wrapper {
    padding: 2rem;
}

/* Profile Page Styles */
.profile-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

.profile-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-upload-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

    .photo-upload-label:hover {
        transform: scale(1.1);
    }

/*.page-header {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-content h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}*/

.filters-toggle {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

    .filters-toggle:hover {
        color: #be157f;
    }

.filters-panel {
    background: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /*border-left: 4px solid var(--secondary-color);*/
}

.orders-container {
    background: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0 0.8rem;
}

    .table th {
        background: var(--white-color);
        color: var(--primary-color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 1rem;
        border: none;
        font-size: 0.9rem;
    }

    .table td {
        /*padding: 1.25rem 1rem;*/
        vertical-align: middle;
        background: #f8f9fa;
        border: none;
        transition: all 0.3s ease;
    }

    .table tr td:first-child {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .table tr td:last-child {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .table tr:hover td {
        background: rgba(223, 25, 149, 0.05);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.badge {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .badge.bg-pending {
        background-color: var(--secondary-color);
    }

    .badge.bg-gray {
        background-color: #6c757d;
        color: black !important;
    }

.bg-gray span {
}

.badge.bg-processing {
    background-color: #ffc107;
}

.badge.bg-completed {
    background-color: var(--primary-color);
}

.badge.bg-cancelled {
    background-color: #dc3545;
}

.btn-sm.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-sm.btn-primary:hover {
        background-color: #be157f;
        border-color: #be157f;
        transform: translateY(-1px);
    }

.btn-sm.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-sm.btn-secondary:hover {
        background-color: #36762c;
        border-color: #36762c;
        transform: translateY(-1px);
    }

.btn-sm.btn-third {
    background-color: black;
    border-color: black;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    color: white;
    gap: 0.5rem;
}

    .btn-sm.btn-third:hover {
        background-color: gray;
        border-color: gray;
        transform: translateY(-1px);
    }

.btn-sm.btn-fourth {
    background-color: gray;
    border-color: gray;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    color: white;
    gap: 0.5rem;
}

.bg-fuxia {
    background: var(--secondary-color) !important;
}

.bg-gray {
    background: var(--tertiary-color) !important;
}

.btn-sm.btn-fourth:hover {
    background-color: lightgray;
    border-color: lightgray;
    transform: translateY(-1px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .page-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Login and Password Recovery Styles */
.login-container {
    position: relative;
    z-index: 1;
}

.corporate-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal {
    z-index: 1052 !important; /* Bootstrap maneja los modales en 1050, esto asegura que esté arriba */
}

.modal-backdrop {
    z-index: 1051 !important; /* El fondo oscuro debe estar por debajo del modal */
}

.modal-dialog {
    position: relative;
}

.form-ctrl {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    padding-left: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

    .form-ctrl:focus {
        color: var(--bs-body-color);
        background-color: none;
        border-color: black !important;
        outline: 0;
        box-shadow: 0 0 0 .5px rgba(0,150,64,.08) !important;
    }

.bck-green {
    background: rgb(0, 150, 64) !important;
}

.nombre-sucursal {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.direccion-recortada {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
}
