/* Colores personalizados */
.bg-primary {
    background-color: #f54558 !important;
}

.text-primary {
    color: #f54558 !important;
}

.btn-primary {
    background-color: #f54558;
    border-color: #f54558;
}

.btn-primary:hover {
    background-color: #c93b4a;
    border-color: #c93b4a;
}

.btn-outline-primary {
    color: #6b7280;
    border-color: #6b7280;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #4b5563;
    border-color: #4b5563;
}

/* Estilos del botón de Google */
.btn-google {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.btn-google:hover {
    background-color: #f0f0f0;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Estilos de autenticación */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-title {
    color: #f54558;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Estilos del sidebar */
.sidebar {
    width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
    border-right: 1px solid #dee2e6;
    background-color: #ffffff;
}

.sidebar .nav-link {
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: #212529;
    background-color: #e9ecef;
    font-weight: 600;
    border-left: 4px solid #495057;
}

/* Barra superior */
.top-navbar {
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 1000;
    }
    .sidebar.active {
        left: 0;
    }
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
    }
    main {
        margin-left: 250px;
    }
}

/* Spinner */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}
.htmx-request.htmx-indicator {
    display: block;
}