:root {
    --primary-color: #36A2FF;
    --secondary-color: #0D6EFD;
    --accent-color: #7DD3FC;

    --dark-color: #0F172A;
    --light-color: #FFFFFF;
    --medium-color: #F1F5F9;

    --soft-border: rgba(54, 162, 255, 0.12);
    --futuristic-glow: 0 0 12px rgba(54, 162, 255, 0.28);
    --glass-effect: rgba(255, 255, 255, 0.82);

    --success-color: #16A34A;
    --warning-color: #FBBF24;
    --danger-color: #DC2626;

    --primary: var(--primary-color);
    --primary-dark: var(--secondary-color);
    --primary-light: #BAE6FD;

    --success: var(--success-color);
    --warning: var(--warning-color);
    --danger: var(--danger-color);

    --gray-50: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #020617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f7;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}



.site-footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.service-form,
.comment-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.1);
    border: 1px solid var(--soft-border);
    transition: all 0.3s ease;
}

.service-form:hover,
.comment-form:hover {
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.15);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.04);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

#diagnostico,
#comentario,
#edit_comentario {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.form-group input[type="number"] {
    text-align: right;
    font-weight: 600;
    color: var(--secondary-color);
}

.estado-selector {
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C63FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

.estado-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

#custom-file-button {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.3);
}

#custom-file-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.image-preview-container {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px dashed var(--soft-border);
    transition: all 0.3s ease;
}

.image-preview-container:hover {
    border-color: var(--primary-color);
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a4a8;
    font-style: italic;
}

.form-group.with-icon {
    position: relative;
}

.form-group.with-icon i {
    position: absolute;
    left: 16px;
    top: 42px;
    color: var(--primary-color);
    z-index: 2;
}

.form-group.with-icon input,
.form-group.with-icon textarea {
    padding-left: 45px;
}

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

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

.service-form,
.comment-form {
    animation: slideInUp 0.5s ease-out;
}

.form-group input:focus+.focus-border,
.form-group textarea:focus+.focus-border {
    transform: scaleX(1);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--dark-color);
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.landing-page {
    padding: 40px 0;
}

.hero {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    font-family: 'Orbitron', sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.inventory-table th,
.inventory-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inventory-table th {
    background-color: var(--dark-color);
    color: white;
    font-weight: 500;
}

.inventory-table tr:hover {
    background-color: #f8f9fa;
}

.low-stock {
    color: var(--danger-color);
    font-weight: bold;
}

.stock-warning {
    color: var(--danger-color);
    margin-left: 5px;
}

.actions {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-edit {
    background-color: var(--warning-color);
    color: #333;
}

.btn-edit:hover {
    background-color: #e0a800;
}

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

.btn-delete:hover {
    background-color: #c82333;
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin: 0;
    }

    .service-form,
    .comment-form {
        width: 100vw;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        left: 0;
        transform: translateX(0);
    }

    .login-box {
        width: 100%;
        max-width: 450px;
        background: white;
        border-radius: 15px;
        padding: 25px 30px;
        box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
        border: 1px solid var(--soft-border);
    }

    .login-container {
        min-height: 100vh;
        padding: 5px;
        align-items: flex-start;
    }



    .inventory-table,
    .sales-table,
    .services-table,
    .detalle-venta {
        display: block;
        width: 100%;
        overflow-x: auto;
        font-size: 14px;
    }

    .inventory-table th,
    .inventory-table td,
    .sales-table th,
    .sales-table td,
    .services-table th,
    .services-table td,
    .detalle-venta th,
    .detalle-venta td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filtros-form {
        flex-direction: column;
        gap: 10px;
    }

    .filtros-form .form-group {
        min-width: 100%;
        margin-bottom: 0;
    }

    .btn {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }

    .acciones-venta {
        flex-direction: column;
        gap: 5px;
    }

    .actions {
        flex-direction: column;
        gap: 5px;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group textarea,
    .form-group select,
    .estado-selector,
    .busqueda-input {
        width: 100%;
        max-width: 100%;
    }

    .resultados-busqueda {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
    }

    .hero {
        padding: 40px 10px;
        margin: 0 -10px 20px -10px;
        width: calc(100% + 20px);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .card,
    .feature-card,
    .report-card,
    .service-section {
        margin: 0 0 15px 0;
        width: 100%;
        border-radius: 8px;
        padding: 15px;
        box-sizing: border-box;
    }

    .timeline2 {
        margin-left: 5px;
        padding-left: 15px;
    }

    .timeline2-content {
        padding: 8px 12px;
    }

    .image-previews {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .preview-item {
        width: 100%;
        height: 100px;
    }

    .photo-gallery {
        justify-content: center;
        gap: 8px;
    }

    .photo-thumbnail {
        width: 80px;
        height: 80px;
    }

    .timeline-thumbnail {
        width: 70px;
        height: 70px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .modal-image-container {
        padding: 50px 10px 60px 10px;
    }

    .modal-footer {
        padding: 15px 10px;
        flex-direction: column;
        gap: 10px;
    }

    .detail-row {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .detail-value {
        width: 100%;
    }

    .swal2-popup {
        width: 95% !important;
        max-width: 95% !important;
        font-size: 14px !important;
        padding: 1em !important;
        margin: 10px !important;
    }

    .swal2-title {
        font-size: 18px !important;
    }

    .swal2-content {
        font-size: 14px !important;
    }

    .swal2-actions {
        flex-direction: column;
        width: 100%;
    }

    .swal2-confirm,
    .swal2-cancel {
        width: 100%;
        margin: 5px 0;
    }

    .input-prefix-group {
        flex-direction: column;
    }

    .input-prefix {
        border-radius: 8px 8px 0 0;
        border-right: 2px solid var(--primary-color);
        border-bottom: none;
        width: 100%;
        justify-content: center;
    }

    .input-prefix-group input {
        border-radius: 0 0 8px 8px;
        border-left: 2px solid var(--primary-color);
        border-top: none;
    }

    .reports-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .chart-container {
        height: 250px;
    }

    .report-filters {
        justify-content: center;
    }

    .big-number {
        font-size: 1.5rem;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .dashboard-title {
        font-size: 1.4rem;
    }

    #diagnostico,
    #comentario,
    #edit_comentario {
        min-height: 100px;
    }

    .venta-info,
    .resumen-venta,
    .search-container,
    .filtros-container,
    .quick-actions,
    .inventory-summary {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .site-footer {
        margin-top: 20px;
        padding: 15px 10px;
    }
}

.swal2-container {
    z-index: 100000 !important;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.quick-actions {
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark-color);
    text-align: center;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
}

.action-icon.admin {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.action-icon.inventory {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2zm-5 12H9v-2h6v2zm3-4H9V8h9v2zM4 6.5V4h16v2.5H4z"/></svg>');
}

.action-icon.add-product {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>');
}

.action-icon.reports {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/></svg>');
}


.action-icon.cellphone {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17 1H7c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 18H7V5h10v14z"/></svg>');
}

.action-icon.payments {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/></svg>');
}

.action-icon.clients {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zM8 11c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.98 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
}

.action-icon.settings {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19.14 12.94c.04-.31.06-.63.06-.94s-.02-.63-.06-.94l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96a7.028 7.028 0 0 0-1.63-.94l-.36-2.54A.5.5 0 0 0 13.9 2h-3.8a.5.5 0 0 0-.49.41l-.36 2.54c-.6.24-1.15.55-1.63.94l-2.39-.96a.5.5 0 0 0-.6.22L2.7 8.97a.5.5 0 0 0 .12.64l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94L2.82 14.65a.5.5 0 0 0-.12.64l1.92 3.32c.14.24.43.34.7.22l2.39-.96c.48.39 1.03.7 1.63.94l.36 2.54c.04.24.25.41.49.41h3.8c.24 0 .45-.17.49-.41l.36-2.54c.6-.24 1.15-.55 1.63-.94l2.39.96c.27.12.56.02.7-.22l1.92-3.32a.5.5 0 0 0-.12-.64l-2.03-1.58zM12 15.5A3.5 3.5 0 1 1 12 8.5a3.5 3.5 0 0 1 0 7z"/></svg>');
}

.inventory-summary {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    color: white;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.summary-item.warning {
    background-color: rgba(220, 53, 69, 0.3);
}

.big-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0 0;
}

.metrics-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 10px;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.metric-body h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2px;
    font-weight: 500;
}

.metric-body .big-number {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.btn-view-all {
    display: block;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-view-all:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.filtros-container {
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filtros-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filtros-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.btn-filter {
    background-color: var(--primary-color);
    color: white;
    height: 42px;
}

.btn-clear {
    background-color: #6c757d;
    color: white;
    height: 42px;
}

.btn-filter:hover,
.btn-clear:hover {
    opacity: 0.9;
}


.sales-table {
    width: 100%;
    border-collapse: collapse;
}

.sales-table th,
.sales-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sales-table th {
    background-color: var(--dark-color);
    color: white;
}

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

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.producto-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.producto-card h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

.resumen-venta {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.resumen-table {
    width: 100%;
    border-collapse: collapse;
}

.resumen-table th,
.resumen-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.total-venta {
    text-align: right;
    margin-top: 15px;
    font-size: 1.2rem;
}

.venta-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: bold;
    width: 120px;
}

.detalle-venta {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.detalle-venta th,
.detalle-venta td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.detalle-venta th {
    background-color: var(--dark-color);
    color: white;
}

.total-label {
    font-weight: bold;
    text-align: right;
}

.total-value {
    font-weight: bold;
}

.action-icon.sale {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 12c0-1.1-.9-2-2-2V7c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3c-1.1 0-2 .9-2 2v5h1.33L6 19h1l.67-2h8.67l.66 2h1l.67-2H20v-5zm-4-2h-3V7h3v3zM8 7h3v3H8V7zm-2 5h12v3H6v-3z"/></svg>');
}

.no-permission {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

.busqueda-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.resultados-busqueda {
    display: none;
    position: absolute;
    width: calc(100% - 30px);
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.resultado-item:hover {
    background-color: #f8f9fa;
}

.info-producto {
    flex: 1;
}

.info-producto span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

.btn-agregar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

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

.sin-resultados {
    padding: 15px;
    text-align: center;
    color: #666;
}

.productos-seleccionados {
    margin: 20px 0;
    min-height: 100px;
}

.ningun-producto {
    text-align: center;
    color: #666;
    padding: 20px;
}

.tabla-productos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabla-productos th,
.tabla-productos td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.tabla-productos th {
    background-color: #f8f9fa;
}

.tabla-productos input[type="number"] {
    width: 60px;
    padding: 5px;
}

.btn-eliminar {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-cantidad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-contenido {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-botones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancelar {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-confirmar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.cantidad-producto {
    width: 60px;
    padding: 5px;
}

.btn-eliminar {
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

.cargando {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.error-busqueda {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.error-busqueda small {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
}

.sin-resultados {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.resultados-busqueda {
    display: none;
    position: absolute;
    width: calc(100% - 30px);
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.resultado-item:hover {
    background-color: #f5f5f5;
}

.info-producto {
    flex: 1;
}

.info-producto strong {
    display: block;
    margin-bottom: 3px;
    color: var(--secondary-color);
}

.info-producto span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.btn-agregar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.tabla-productos {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.tabla-productos th,
.tabla-productos td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.tabla-productos th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.cantidad-producto {
    width: 60px;
    padding: 5px;
    text-align: center;
}

.btn-eliminar {
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

.total-venta {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: right;
    font-size: 1.2rem;
}

.total-venta h4 {
    margin: 0;
    color: var(--dark-color);
}

.search-container {
    margin: 20px 0;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-container .form-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.btn-quantity {
    width: 30px;
    height: 30px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-quantity.minus {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-quantity.plus {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.cantidad-producto {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.producto-card {
    transition: all 0.3s;
}

.producto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.producto-card h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
}

.producto-card p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.producto-card p strong {
    color: var(--primary-color);
}

.search-prompt {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    color: #6c757d;
    font-style: italic;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
}

.btn-search {
    padding: 10px 20px;
    font-size: 1rem;
}

.productos-grid {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding-right: 10px;
}

.productos-grid::-webkit-scrollbar {
    width: 8px;
}

.productos-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.productos-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

.btn-update {
    background-color: var(--warning-color);
    color: #333;
    margin: 15px 0;
    display: block;
    width: 100%;
}

.btn-update:hover {
    background-color: #e0a800;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn-danger {
    background-color: var(--danger-color);
    margin-top: 10px;
}

.btn-danger:hover {
    background-color: #c82333;
}

.resumen-venta {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.resumen-table {
    width: 100%;
    margin-bottom: 15px;
}

.resumen-table th,
.resumen-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.total-label {
    font-weight: bold;
    text-align: right;
}

.total-value {
    font-weight: bold;
}

.btn-print {
    background-color: #6c757d;
    color: white;
    margin-top: 10px;
}

.btn-print:hover {
    background-color: #5a6268;
}

.acciones-venta {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.acciones-venta .btn {
    flex: 1;
}

.redirect-message {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #6c757d;
}

.venta-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: bold;
    width: 120px;
    color: #495057;
}

.info-value {
    flex: 1;
}

.detalle-venta {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.detalle-venta th {
    background-color: var(--dark-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.detalle-venta td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.total-label {
    font-weight: bold;
    text-align: right;
}

.total-value {
    font-weight: bold;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-print {
    background-color: #6c757d;
    color: white;
}

.btn-print:hover {
    background-color: #5a6268;
}

tr.inactive-product {
    background-color: #f8f9fa;
    color: #6c757d;
}

tr.inactive-product td {
    opacity: 0.7;
}

.btn-reactivate {
    background-color: #28a745;
    color: white;
}

.btn-reactivate:hover {
    background-color: #218838;
}

.actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.actions .btn {
    margin: 2px 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-danger i {
    color: #dc3545;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-reactivate {
    background-color: #28a745;
    color: white;
}

.btn-reactivate:hover {
    background-color: #218838;
}

.confirm-action {
    transition: all 0.3s ease;
}

.confirm-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reports-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.report-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.report-card h2 {
    margin-top: 0;
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.report-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-filters .btn-period {
    background: #e9ecef;
    color: #495057;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.report-filters .btn-period:hover {
    background: #dee2e6;
}

.report-filters .btn-period.active {
    background: var(--primary-color);
    color: white;
}


.chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.chart-loader i {
    font-size: 2rem;
    color: var(--primary-color);
}

canvas {
    transition: opacity 0.3s ease;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.services-table th,
.services-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.services-table th {
    background-color: var(--dark-color);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-recibido {
    background-color: #6c757d;
    color: white;
}

.status-diagnostico {
    background-color: #17a2b8;
    color: white;
}

.status-reparacion {
    background-color: #ffc107;
    color: #212529;
}

.status-completado {
    background-color: #28a745;
    color: white;
}

.status-entregado {
    background-color: #007bff;
    color: white;
}

.status-cancelado {
    background-color: #dc3545;
    color: white;
}

.service-container {
    max-width: 1000px;
    margin: 0 auto;
}

.service-title {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.service-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    width: 150px;
    color: #495057;
}

.detail-value {
    flex: 1;
}

.timeline2 {
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin-left: 10px;
}

.timeline2-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline2-item:before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline2-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline2-date {
    color: #6c757d;
}

.timeline2-status {
    font-weight: bold;
}

.timeline2-user {
    font-style: italic;
}

.timeline2-content {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
}

.comment-form {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}



.photo-upload {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.photo-thumbnail {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.3s ease;
}

.upload-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.upload-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.status-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}




.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8eaf6 100%);
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
    border: 1px solid var(--soft-border);
}

.login-header {
    text-align: center;
    margin-bottom: 15px;
}

.login-header .login-icon {
    margin-bottom: 20px;
}

.login-header .form-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.tracking-access {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--soft-border);
}

.tracking-access h4 {
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-size: 1rem;
}

.tracking-access h4 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.login-box form {
    margin-bottom: 10px;
}

.login-links {
    text-align: center;
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.tracking-form {
    margin-top: 12px;
}

.form-group label i {
    margin-right: 8px;
    color: #7f8c8d;
    width: 20px;
    text-align: center;
}

.input-prefix-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 16px;
    border: 2px solid var(--primary-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    font-size: 15px;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

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

.input-prefix-group input {
    flex: 1;
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-prefix-group input:focus {
    border-left: none;
    border-color: var(--primary-color);
}


.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.form-group:focus-within .form-hint {
    color: #3498db;
    opacity: 1;
}

.timeline-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.timeline-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.timeline-thumbnail:hover {
    transform: scale(1.05);
}

.estado-selector {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    max-width: 250px;
}

.estado-selector:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    max-width: 70%;
}

.close-modal {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 11;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 80px 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

.nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 5;
}

.arrow {
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    user-select: none;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail:hover {
    border-color: #4CAF50;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.timeline-images h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-images h4 i {
    color: #4CAF50;
}

.image-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.delete-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
}

.image-container:hover .delete-image-btn {
    display: block;
}

.delete-image-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

.edit-comment-btn {
    cursor: pointer;
    margin-left: 10px;
    color: #007bff;
}

.edit-comment-btn:hover {
    color: #0056b3;
}

.edit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.edit-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.edit-modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-modal-header h3 {
    margin: 0;
}

.edit-modal-header .edit-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.edit-modal-header .edit-close:hover {
    color: #000;
}

.edit-modal-body {
    padding: 20px;
}

.edit-modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.edit-modal-footer button {
    margin-left: 10px;
}

.swal2-popup {
    font-size: 1.2rem;
}

.progress-bar {
    height: 25px !important;
}

.swal2-progress-bar {
    background-color: #007bff;
}

.image-preview-container {
    margin-top: 15px;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.remove-image:hover {
    background-color: rgba(255, 0, 0, 0.9);
}

#custom-file-button {
    margin-bottom: 10px;
}