/* ESTILOS GENERALES COMPACTOS Y MODERNOS */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    color: #1e293b;
}

header {
    background-color: #0f172a;
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

h1 { margin: 0; font-size: 1.8rem; }

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #1d4ed8; }

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: #f1f5f9;
    color: #475569;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* MENÚS DESPLEGABLES CON COLORES DINÁMICOS */
.table-select {
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.status-En-Route { background-color: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.status-Delayed { background-color: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.status-Anchorage { background-color: #fef3c7; color: #d97706; border-color: #fde68a; }
.status-Berthed { background-color: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.status-Operations { background-color: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }
.status-Sailed { background-color: #f1f5f9; color: #475569; border-color: #cbd5e1; }

.actions-cell { display: flex; gap: 10px; align-items: center; }
.mt-link { text-decoration: none; color: #2563eb; font-size: 0.9rem; font-weight: 500; }
.mt-link:hover { text-decoration: underline; }
.btn-delete { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; padding: 0.4rem 0.8rem; border-radius: 0.25rem; cursor: pointer; }
.btn-delete:hover { background: #fca5a5; }

/* VENTANA MODAL FLOTANTE */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    background: white; padding: 2rem; border-radius: 0.5rem; width: 100%; max-width: 500px; position: relative;
}
.close-button { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; }
form label { display: block; margin-top: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
form input, form select { width: 100%; padding: 0.6rem; border-radius: 0.25rem; border: 1px solid #cbd5e1; box-sizing: border-box; }
.btn-submit { width: 100%; margin-top: 1.5rem; background: #10b981; color: white; border: none; padding: 0.75rem; border-radius: 0.375rem; font-weight: 600; cursor: pointer; }
.btn-submit:hover { background: #059669; }