/* Custom Styles for Voting System */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bg-success {
    background-color: #198754 !important;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.card {
    border-radius: 12px;
    border: none;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

footer {
    margin-top: auto;
}

/* Botón flotante para subir */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #198754;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #157347;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Animar flecha del botón Mi Ficha al expandir/colapsar */
button[data-bs-toggle="collapse"][aria-expanded="true"] .icon-ficha-collapse {
    transform: rotate(180deg);
    transition: transform 0.2s ease-in-out;
}
button[data-bs-toggle="collapse"][aria-expanded="false"] .icon-ficha-collapse {
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}
