/* Estilos Generales */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand i {
    color: #ffd700;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Formulario de Orden */
.orden-form {
    max-width: 1200px;
    margin: 0 auto;
}

.orden-form .form-group {
    margin-bottom: 1rem;
}

.orden-form .card {
    margin-bottom: 1.5rem;
}

.orden-form .checklist-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.orden-form .photos-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.orden-form .photo-upload {
    position: relative;
    aspect-ratio: 4/3;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

.orden-form .photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.orden-form .photo-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Timeline para 車rdenes de trabajo */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-content {
    position: relative;
    margin-left: 60px;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.timeline-content::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 15px;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-right: 7px solid #fff;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    background: #007bff;
    border-radius: 50%;
    left: 0;
    top: 0;
    color: #fff;
    line-height: 40px;
}

/* Botones de acci車n */
.btn-action {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
}

/* Firma digital */
.signature-pad {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.dashboard-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#empresasChart {
    min-height: 300px;
}

/* Estilos para la lista de empresas por vencer */
.list-group-item {
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Estilos para la tabla de 迆ltimas empresas */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.table img {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-content {
        margin-left: 100px;
    }
    
    .timeline-icon {
        left: 20px;
    }

    /* Mejoras m車viles para orden-form */
    .orden-form {
        padding: 0.5rem;
    }

    .orden-form .card {
        margin-bottom: 1rem;
    }

    .orden-form .form-group {
        margin-bottom: 0.75rem;
    }

    .orden-form .checklist-section {
        grid-template-columns: 1fr;
    }

    .orden-form .photos-section {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    /* Ajustes generales m車vil */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col, [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card {
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
    }

    .table-responsive {
        margin-bottom: 0.75rem;
    }

    /* Ajustes de texto para m車vil */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #007bff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

/* Estilos para la barra de desplazamiento en empresas por vencer */
.list-group-flush::-webkit-scrollbar {
    width: 6px;
}

.list-group-flush::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list-group-flush::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.list-group-flush::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilo para Firefox */
.list-group-flush {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
} 