/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
}

/* Header */
.main-header {
    background-color: #3c8dbc;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
}

.btn-logout {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
}

.btn-logout:hover {
    background-color: #e08e0b;
}

/* Layout principal */
.main-container {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #222d32;
    color: #b8c7ce;
    height: 100%;
    min-height: calc(100vh - 60px);
    padding-top: 20px;
    /*overflow-y: auto;
    position: relative;*/
}


.menu-item {
    padding: 12px 25px;
    display: flex;
    color: #b8c7ce;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.menu-item:hover, .menu-item.active {
    background-color: #1e282c;
    color: white;
    z-index: 2;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Contenido */
.content {
    flex: 1;
    padding: 20px;
}

/* Cards del dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 18px;
    font-weight: bold;
    color: #3c8dbc;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icon {
    background-color: #3c8dbc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.card-content {
    font-size: 16px;
}

.card-content h2 {
    font-size: 36px;
    color: #444;
    margin: 0 0 20px 0;
}

/* Tablas */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f9f9f9;
}

/* Botones */
.btn {
    background-color: #3c8dbc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    background-color: #367fa9;
}

.btn-success {
    background-color: #00a65a;
}

.btn-success:hover {
    background-color: #008d4c;
}

.btn-danger {
    background-color: #dd4b39;
}

.btn-danger:hover {
    background-color: #d73925;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Mensajes de alerta */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.alert-danger {
    background-color: #f2dede;
    color: #a94442;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #3c8dbc;
}

.pagination a:hover {
    background-color: #eee;
}

.pagination a.active {
    background-color: #3c8dbc;
    color: white;
    border-color: #3c8dbc;
}

/* Buscador de pacientes */
.search-box {
    margin-bottom: 20px;
}

.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.patient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patient-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.patient-list li:hover {
    background-color: #f5f5f5;
}
/* Dashboard Layout */
.dashboard-wrapper {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.bg-primary {
    background: #3498db;
}

.bg-success {
    background: #2ecc71;
}

.stat-details {
    flex: 1;
}

.stat-details h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add {
    background: #2ecc71;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background: #27ae60;
}

.card-body {
    padding: 1.5rem;
}

/* Table Styles */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
}

.date-cell,
.patient-cell,
.owner-cell,
.vaccine-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-cell i,
.patient-cell i,
.owner-cell i,
.vaccine-cell i {
    color: #7f8c8d;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    background: #3498db;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-action:hover {
    background: #2980b9;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .btn-add {
        width: 100%;
        justify-content: center;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 6px;
    }

    .custom-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-bottom: 1px solid #e9ecef;
    }

    .custom-table td:last-child {
        border-bottom: none;
    }

    .custom-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }

    .action-buttons {
        margin-left: auto;
    }
}