/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
}

.user-info {
    font-size: 14px;
}

.user-info a {
    color: #3498db;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

/* Navegación */
nav {
    background-color: #6e7073;
    border-radius: 5px;
    margin-bottom: 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #95c0ec;
}

nav ul li a.active {
    background-color: #2c3e50;
}
/* Main */
main {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Formularios */
.form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Botones */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #fa7a6c;
}

.btn-danger:hover {
    background-color: #f8d1cd;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

/* Tablas */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, 
.data-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
}

.data-table tr {
    font-size: 10px;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* Estados */
.status {
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.status.pending {
    background-color: #f39c12;
    color: white;
}

.status.completed {
    background-color: #2ecc71;
    color: white;
}

.status.delivered {
    background-color: #3498db;
    color: white;
}

.status.overdue {
    background-color: #e74c3c;
    color: white;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Login */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #34495e;
}

.text-center {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Reportes */
.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.report-card {
    background-color: #f8f9fa;
    font-size: 12px;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.report-card:hover {
    transform: translateY(-5px);
}

.report-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.report-card p {
    margin-bottom: 20px;
    color: #555;
}

.report-card .btn {
    width: 100%;
    text-align: center;
}

.report-period {
    margin-bottom: 20px;
    font-style: italic;
    color: #7f8c8d;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    margin-bottom: 10px;
    color: #34495e;
}

.big-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
}

.progress-container {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2ecc71;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.report-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 10px;
}

/* Acciones */
.actions {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        margin-bottom: 10px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .report-summary {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .report-actions .btn {
        width: 100%;
    }
}