@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
    --primary-color: #2e1065;
    /* Deep Midnight Purple - Oscuro y neutro */
    --secondary-color: #4c1d95;
    /* Muted Violet */
    --accent-color: #7c3aed;
    /* Vibrant Violet for small accents */
    --background-dark: #0f172a;
    /* Slate 900 - neutral surface */
    --background-light: #1e293b;
    /* Slate 800 - secondary surface */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* General Link Styling */
a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: var(--background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--primary-color);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    /* Reduced size */
    color: #fff !important;
    text-shadow: none;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    /* Reduced padding */
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.85rem;
    /* Reduced font size */
    text-transform: none;
    /* Reverted uppercase */
    letter-spacing: normal;
    /* Reverted spacing */
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link i.fas {
    font-size: 0.9rem;
    /* Adjusted icon size */
    line-height: 1;
    /* Ensure consistent line height */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: var(--primary-color);
    transform: none;
    /* Removed lift effect */
}

/* Cards */
.card {
    background-color: var(--background-light);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.item-row.card {
    overflow: visible;
}

.card-header {
    background-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--secondary-color);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--text-primary);
}

.btn-warning {
    background-color: var(--warning-color);
    color: var(--background-dark);
}

.btn-info {
    background-color: var(--info-color);
    color: var(--text-primary);
}

.btn-outline-primary {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
}

/* Forms */
.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: var(--background-dark);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--background-dark);
    color: var(--text-primary);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(240, 138, 93, 0.25);
    outline: none;
}

/* Tables */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.table {
    background-color: var(--background-light);
    color: var(--text-primary);
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--primary-color);
}

.table th {
    background-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: #22223a;
    color: var(--text-primary);
}

/* Badges */
.badge {
    border-radius: 12px;
    padding: 0.5em 1em;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-success {
    background-color: var(--success-color);
}

.badge-danger {
    background-color: var(--danger-color);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--background-dark);
}

.badge-info {
    background-color: var(--info-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}


/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

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

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: calc(1rem - 0.5rem);
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    z-index: 1;
}

/* Dashboard cards */
.dashboard-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card .card-body {
    position: relative;
    z-index: 2;
}

.dashboard-card .card-body::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.1;
    transition: transform 0.5s ease-out;
}

.dashboard-card:hover .card-body::before {
    transform: scale(3);
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .card-body,
    .login-card {
        padding: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        width: 100%;
    }
}

.autocomplete-suggestion,
.suggestion {
    padding: 10px;
    cursor: pointer;
    background-color: var(--background-light);
    color: var(--text-primary);
    border-bottom: 1px solid var(--primary-color);
}

.autocomplete-suggestion:hover,
.suggestion:hover {
    background-color: var(--primary-color);
}

.suggestions-list {
    position: absolute;
    border: 1px solid #ddd;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    list-style-type: none;
    /* Add this line */
    padding: 0;
    /* Add this line */
    margin: 0;
    /* Add this line */
}

.suggestion {
    padding: 10px;
    cursor: pointer;
    background-color: var(--background-light);
    color: var(--text-primary);
    border-bottom: 1px solid var(--primary-color);
    animation: fadeInDown 0.3s ease-in-out forwards;
}

.suggestion .highlight {
    font-weight: bold;
    color: var(--accent-color);
}

.suggestion:last-child {
    border-bottom: none;
}

.suggestion:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.suggestion strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.suggestion small {
    display: block;
    font-size: 0.8rem;
    color: #bdc3c7;
}

.suggestion:hover small {
    color: #fff;
}

.suggestions-list::-webkit-scrollbar {
    width: 8px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #888;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.autocomplete-suggestion,
.autocomplete-suggestion:last-child {
    padding: 10px;
    cursor: pointer;
    background-color: var(--background-light);
    color: var(--text-primary);
    border-bottom: 1px solid var(--primary-color);
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion:last-child:hover {
    background-color: var(--primary-color);
}

.item-name {
    width: 100%;
}

.item-name:focus {
    z-index: 1001;
    /* Ensure the input is above the suggestions */
}

.col-md-4 {
    position: relative;
}

.autocomplete-container {
    position: relative;
}

@media (min-width: 769px) {
    .suggestions-list {
        max-height: 300px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        min-width: 220px;
        width: auto !important;
        z-index: 2000 !important;
        left: 0;
        right: auto;
    }

    .suggestion {
        padding: 12px 15px;
        white-space: normal;
        word-break: break-word;
    }

    .card-body {
        padding: 1.5rem;
    }

    .item-row .card-body {
        padding: 1rem;
    }

    .row {
        --bs-gutter-x: 1.5rem;
    }
}

.suggestion-container {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #2c3e50;
    border: 1px solid #34495e;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
    /* Initially hidden */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #34495e;
}

.suggestion:hover {
    background-color: #34495e;
}

@media (max-width: 768px) {
    .suggestions-list {
        position: static;
        border: none;
        box-shadow: none;
        max-height: none;
    }

    .suggestion {
        padding: 12px;
        border: 1px solid #34495e;
        border-radius: 4px;
        margin-bottom: 5px;
    }
}

.card,
.card-body,
.row,
.col-md-4,
.form-group,
.mb-3 {
    animation: fadeIn 0.5s ease-in-out;
}

#itemsContainer {
    animation: fadeIn 0.5s ease-in-out;
}

.modal-open .suggestions-list {
    z-index: 1056;
    /* Ensure it appears above the modal backdrop */
}

/* Estilos para el buscador de proveedores */
.supplier-search-container {
    position: relative;
}

.supplier-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-light);
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.supplier-dropdown-content {
    padding: 0;
}

.supplier-group {
    border-bottom: 1px solid var(--primary-color);
}

.supplier-group:last-child {
    border-bottom: none;
}

.supplier-group-header {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.supplier-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(106, 44, 112, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.supplier-option:last-child {
    border-bottom: none;
}

.supplier-option:hover {
    background: rgba(106, 44, 112, 0.2);
}

.supplier-option.selected {
    background: var(--primary-color);
    color: var(--text-primary);
}

.supplier-option .supplier-name {
    font-weight: 500;
    color: var(--text-primary);
}

.supplier-option .supplier-code {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.supplier-option:hover .supplier-name,
.supplier-option.selected .supplier-name {
    color: var(--text-primary);
}

.supplier-option:hover .supplier-code,
.supplier-option.selected .supplier-code {
    color: rgba(224, 224, 224, 0.8);
}

.supplier-dropdown::-webkit-scrollbar {
    width: 6px;
}

.supplier-dropdown::-webkit-scrollbar-track {
    background: var(--background-dark);
}

.supplier-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.supplier-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Estilo para cuando no hay resultados */
.no-results {
    padding: 15px 12px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Animación de entrada */
.supplier-dropdown.show {
    animation: fadeInDown 0.2s ease-out;
}

/* Estilos para el Super Buscador Profesional Mejorado - v2.0 */
.search-professional-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2e1065 100%) !important;
    border-radius: 20px !important;
    box-shadow:
        0 25px 50px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px !important;
    display: block !important;
}

.search-professional-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 35px 70px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-professional-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.search-professional-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
}

.search-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-icon-wrapper:hover::before {
    left: 100%;
}

.search-icon-wrapper:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.search-icon-wrapper i {
    font-size: 28px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

.search-title-section {
    flex: 1;
}

.search-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 8px 0 0 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-professional-body {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.search-form-professional {
    margin-bottom: 0;
}

.search-input-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.search-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

.search-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 20px;
    z-index: 3;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within .search-input-icon {
    color: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
}

.search-input-field {
    width: 100%;
    padding: 20px 25px 20px 60px;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    color: #333;
    outline: none;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-input-field::placeholder {
    color: #6c757d;
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-input-field:focus::placeholder {
    color: #9ca3af;
    transform: translateX(5px);
}

.search-clear-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.search-clear-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(102, 126, 234, 0.15) 100%);
    color: #5a6fd8;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border: none;
    color: white;
    padding: 20px 35px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.search-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.search-submit-btn:hover::before {
    left: 100%;
}

.search-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(102, 126, 234, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 50%, #e879f9 100%);
}

.search-submit-btn:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.search-results-summary {
    margin-top: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    padding: 20px 25px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.results-info i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.results-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-count {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

/* Estilos para el Super Buscador Simplificado */
.search-simple-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-simple-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
}

.search-simple-input-wrapper {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-simple-input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-simple-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-simple-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 16px;
    z-index: 2;
}

.search-simple-field {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
    font-weight: 500;
}

.search-simple-field::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-simple-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: #667eea;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 12px;
}

.search-simple-clear:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
}

.search-simple-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.search-simple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.search-simple-results {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-simple-info {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Estilos para el botón Nueva Solicitud */
.btn-new-request {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
}

.btn-new-request:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6) !important;
    color: white !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
}

.btn-new-request:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5) !important;
    color: white !important;
}

/* Estilos para el preview de búsqueda */
.search-preview-row {
    background-color: #f8f9fa !important;
    border-top: none !important;
}

.search-preview-container {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid #667eea;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 2px 0;
}

.search-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expand-preview-btn {
    color: #667eea !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.expand-preview-btn:hover {
    color: #5a6fd8 !important;
    transform: scale(1.1) !important;
}

/* Modal para expandir preview */
.search-expand-modal .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-expand-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.search-expand-modal .modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}

.search-field-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.search-field-content {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}