:root {
    --primary-color: #131921;
    --secondary-color: #232f3e;
    --accent-color: #fbff00;
    --text-light: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f3f3;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}


.login-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    margin: auto;
    height: 150%;
}

.logo {
    width: 100px;
    margin-bottom: 20px;
}

.login-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    height: 150%;
}

.login-box h2 {
    color: #0550b3;
    margin-bottom: 20px;
    font-size: 150%;
}

.login-box .form-control {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    height: 150%;
    font-size: 150%;
}

.login-box .btn-primary {
    background-color: #1877f2;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    color: white;
    font-weight: bold;
    height: 150%;
    font-size: 150%;
}

.login-box .btn-primary:hover {
    background-color: #166fe5;
}

.register-link {
    margin-top: 15px;
}

.register-link a {
    color: #1877f2;
    text-decoration: none;
}


.login-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 150%;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    height: 150%;
    font-size: 150%;
}

.btn-primary:hover {
    background-color: #fbff00;
    border-color: #fbff00;
    color: var(--text-dark);
}

.navbar {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    color: var(--text-light) !important;
    font-weight: bold;
}

.nav-link {
    color: var(--text-light) !important;
}

.search-bar {
    background-color: var(--secondary-color);
    padding: 10px 0;
}

.search-input {
    border-radius: 20px;
    border: none;
    padding: 8px 15px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    color: var(--text-dark);
}

.book-author {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.book-description {
    font-size: 0.9em;
    color: #777;
    margin: 10px 0;
  /*  display: -webkit-box;
   -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;*/
    text-size-adjust: 100%; /* Para navegadores modernos */
    overflow: hidden;
}

.pdf-viewer {
    width: 100%;
    height: calc(100vh - 60px);
    border: none;
}

.upload-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.preview-image {
    max-width: 200px;
    max-height: 300px;
    margin: 10px 0;
}

.no-access {
    background: rgba(0,0,0,0.05);
    position: relative;
}

.no-access::after {
    content: 'Acceso Restringido';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Estilos para pantallas pequeñas (celulares) */
@media only screen and (max-width: 600px) {
    .login-box {
        width: 90%;
        padding: 20px;
        height: 150%;
    }
    .logo {
        width: 150px;
        height: auto;
    }
    h2 {
        font-size: 36px;
    }
    .form-control {
        height: 150%;
        font-size: 24px;
    }
    .btn {
        height: 150%;
        font-size: 24px;
    }
}

/* Estilos para pantallas medianas (tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    .login-box {
        width: 70%;
        padding: 30px;
        height: 150%;
    }
    .logo {
        width: 200px;
        height: auto;
    }
    h2 {
        font-size: 42px;
    }
    .form-control {
        height: 150%;
        font-size: 27px;
    }
    .btn {
        height: 150%;
        font-size: 27px;
    }
}

/* Estilos para pantallas grandes (computadoras) */
@media only screen and (min-width: 1025px) {
    .login-box {
        width: 400px;
        padding: 40px;
        height: 150%;
    }
    .logo {
        width: 200px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .book-cover {
        height: 225px;
    }
}
