body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    max-width: 900px;
    margin: auto;
    padding-top: 100px;
}

/* Navbar Styles */
nav.navbar.navbar-expand-lg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar > .container {
    max-width: 900px;
    margin: 0 auto;
}

.navbar-brand {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 10px;
}

.navbar-logo {
    height: 80px;
    width: auto;
    padding: 5px;
}

nav.navbar {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    background-color: #0d6efd !important;
    background:  #0d6efd !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: white !important;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    body {
        padding-top: 90px;
    }
}

.section {
    margin-top: 20px;
    display: none;
}

.section:not(.d-none) {
    display: block;
}

h2 {
    color: #006400;
}

.container {
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 1;
}

/* Estilo para la frase aleatoria */
.random-quote {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    color: #555;
    margin-bottom: 10px;
}

/* Estilo para el autor */
.random-author {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    text-align: right;
    font-weight: bold;
    color: #888;
}

/* Ajustar formularios de login y registro */
#login form, 
#register form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-group-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

/* Tarjetas Cooperativas */
.card {
    display: block;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(to bottom, #ffffff, #f7f7f7);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.25rem;
}

.card-text {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-body {
    padding: 20px;
}

#addCooperativaBtn {
    font-size: 14px;
    padding: 5px 10px;
}

#backButton {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

#backButton:hover {
    background-color: #5a6268;
}

/* Media Query para pantallas menores de 768px */
@media (max-width: 768px) {
    #login form {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Estilos para cooperativas */
.cooperativa-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cooperativa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.cooperativa-info {
    font-size: 0.9rem;
}

.section-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.cooperativa-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.cooperativa-info p {
    margin-bottom: 0.5rem;
}

.cooperativa-info a {
    color: inherit;
}

.cooperativa-info a:hover {
    color: #0d6efd;
}

.table>:not(caption)>*>* {
    padding: .2rem .2rem;
}