﻿@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;
    --servi-green: #00A651;
}

html, body {
    font-family: 'nexa book', sans-serif;
}

body {
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2000&auto=format&fit=crop&ixlib=rb-4.0.1') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: 'nexa book', 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;
    font-weight: bold;
    color: var(--servi-green);
    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: var(--servi-green);
    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(--servi-green);
    }

.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(--servi-green);
    font-size: 2rem;
    font-weight: bold;
    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;
    font-size: 14px !important;
}

    .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-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: #067134;
        border-color: #067134;
        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(--servi-green);
    font-size: 1.5rem;
    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;
}


.form-label1 {
    font-weight: bold;
    color: var(--servi-green);
    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;
}

@font-face {
    font-family: 'nexa book';
    src: url('/fonts/nexa-bold.ttf') format('truetype');
    font-weight: 700; /* bold */
    font-style: normal;
}

/* Footer: © 2025, Diseñado por MDC ... */
footer.footer .copyright,
footer.footer .copyright a {
    color: var(--servi-green) !important;
    text-decoration: none; /* sin subrayado */
}

    footer.footer .copyright a:hover,
    footer.footer .copyright a:focus {
        color: var(--servi-green) !important;
        opacity: 0.9;
    }

/* Cerrar sesión en la topbar: forzar verde en todos los estados */
nav.top-navbar a.dropdown-item,
nav.top-navbar a.dropdown-item:link,
nav.top-navbar a.dropdown-item:visited {
    color: var(--servi-green) !important;
}

    nav.top-navbar a.dropdown-item:hover,
    nav.top-navbar a.dropdown-item:focus,
    nav.top-navbar a.dropdown-item:active,
    nav.top-navbar a.dropdown-item.active {
        color: var(--servi-green) !important;
        background: rgba(0,166,81,.06);
    }

    /* Icono dentro del link hereda el color */
    nav.top-navbar a.dropdown-item i {
        color: inherit !important;
    }

/* Links del login/forgot en verde */
.login-container .text-center a.text-decoration-none,
.login-container .text-center a.text-decoration-none:link,
.login-container .text-center a.text-decoration-none:visited {
    color: var(--servi-green) !important;
    text-decoration: none !important;
}

    .login-container .text-center a.text-decoration-none:hover,
    .login-container .text-center a.text-decoration-none:focus,
    .login-container .text-center a.text-decoration-none:active {
        color: var(--servi-green) !important;
        opacity: .9;
    }

.text-muted {
    color: var(--servi-green) !important;
}
    

span.ms-2.d-none.d-lg-inline {
    font-size: 1.2rem; /* ajusta tamaño */
    font-weight: bold; /* negrita */
}

#modal-content .header-content p.text-muted {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
