body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.login-container,
.menu-container,
.cotizaciones-container {
    max-width: 80%;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px #ccc;
    border-radius: 5px;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    word-break: break-word;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

/* Estilos para botones de documentos */
.btn-documentos {
    width: auto;
    padding: 8px 12px;
    margin: 0;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-documentos.status-si {
    background: #28a745;
    color: white;
}

.btn-documentos.status-si:hover {
    background: #218838;
}

.btn-documentos.status-no {
    background: #dc3545;
    color: white;
}

.btn-documentos.status-no:hover {
    background: #c82333;
}

.btn-ofertas {
    display: inline-block;
    padding: 8px 12px;
    background: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-ofertas:hover {
    background: #138496;
    text-decoration: none;
}

/* Chat styles */
.chat-box {
    max-height: 50vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.chat-message { margin: 8px 0; }
.chat-message .msg-meta { font-size: 12px; color: #666; margin-bottom: 6px; }
.chat-message .msg-body { background: #f1f3f5; padding: 8px 10px; border-radius: 6px; }
.chat-message.from-asesor .msg-body { background: #d1e7dd; }
.chat-message.from-cliente .msg-body { background: #e2e3e5; }
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; }
.chat-input-row input[type="text"] { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.chat-input-row button { padding: 10px 16px; background: #007bff; color: white; border: none; border-radius: 4px; }
.btn-chat { padding: 6px 10px; background: #17a2b8; color: white; border-radius: 4px; border: none; cursor: pointer; }
.btn-chat:hover { background: #138496; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: black;
}

/* Estado de documentos */
.estado-general {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #007BFF;
}

.estado-general p {
    margin: 5px 0;
    font-size: 14px;
}

.status-si {
    color: #28a745;
    font-weight: bold;
}

.status-no {
    color: #dc3545;
    font-weight: bold;
}

/* Barra de progreso */
.progreso-documentos {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.btn-confirmar-docs {
    width: auto;
    padding: 10px 20px;
    margin-top: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-confirmar-docs:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Lista de documentos */
.documento-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.documento-item {
    background: #f8f9fa;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #28a745;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
}

.doc-tipo {
    font-weight: bold;
    color: #007BFF;
    font-size: 14px;
}

.doc-nombre {
    color: #555;
    font-size: 13px;
    word-break: break-all;
}

.doc-tamaño {
    color: #999;
    font-size: 12px;
}

.doc-fecha {
    color: #999;
    font-size: 12px;
}

.btn-descargar {
    width: auto;
    padding: 8px 15px;
    margin: 0;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 13px;
}

.btn-descargar:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Requerimientos */
.requerimientos-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.requerimientos-list li {
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    border-left: 4px solid;
}

.requerimientos-list li.completado {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.requerimientos-list li.pendiente {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.sin-documentos {
    background: #fff3cd;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
    color: #856404;
    margin: 10px 0;
}

.btn-cerrar-modal {
    width: auto;
    padding: 10px 20px;
    margin-top: 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cerrar-modal:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .documento-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-descargar {
        width: 100%;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 5px;
    }
}

