/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.user-info {
    font-size: 0.9em;
}

.logout-btn {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #e74c3c;
    border-radius: 3px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Navegación */
.main-nav {
    background-color: #34495e;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
}

.main-nav li a:hover {
    background-color: #2c3e50;
}

/* Formularios */
.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
}

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

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

table th {
    background-color: #34495e;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #e6e6e6;
}

/* Alertas */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pestañas */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tabs a {
    padding: 10px 15px;
    text-decoration: none;
    color: #3498db;
    background-color: #f1f1f1;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.tabs a.active {
    background-color: white;
    color: #333;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

/* Tarjetas de estadísticas */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2em;
}

/* Detalles de órdenes/reportes */
.order-details, .report-details {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.order-info, .report-info {
    margin-bottom: 20px;
}

.order-info p, .report-info p {
    margin-bottom: 10px;
}

/* Mensajes */
.messages-section {
    margin-top: 30px;
}

.messages-list {
    margin-bottom: 20px;
}

.message {
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 10px;
}

.message p {
    margin-bottom: 5px;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
}

/* Estilos para la vista dual de listados */
.dual-lists {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.list-container {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.list-container h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.actions {
    margin-top: 15px;
}