body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f4f8fb;
    color: #2c3e50;
}

.nav-elements-container {
    margin-right: 6rem; 
    margin-left: auto; 
}

.btn-link-custom {
    text-decoration: none !important;
    padding: 8px 12px !important;
}

.btn-link-custom .fa-user-circle {
    font-size: 1.5rem; 
}

.static-logo {
    height: 50px;
    margin-left: 2rem;
    cursor: default;
}

.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 15vh; 
    padding-top: 2rem;
    margin: 0 auto;
    text-align: center;
}

.sub-header h2 {
    font-size: 1.90rem;
    color: #1e3a8a;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sub-header h4 {
    font-size: 1.75rem;
    color: #1e3a8a;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.main-text {
    font-size: 1.1rem;
    color: #334155; 
    margin: 1rem 2.5rem;
    line-height: 1.7;
    text-align: justify;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 2rem;
    padding: 15px;
}
.button-container form {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}

.button-container form .button {
    width: 100%;
    box-sizing: border-box;
}

.button-container-reduced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1rem;
    padding: 5px;
}

.button {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 10px;
    background: #0077C8; 
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.confirm-button {
    padding: 0.75rem 1.5rem;       
    font-size: 1rem;               
    border: none;
    border-radius: 8px;            
    background: #0077C8; 
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;                  
    max-width: 300px;             
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}


.button:hover {
    background: #1e40af; 
}

.confirm-button:hover {
    background: #1e40af; 
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #dbeafe; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #0077C8;
}

.close-button:hover {
    color: red;
}

.user-list {
    text-align: left;
    margin-top: 10px;
    padding-left: 20px;
}

.user-list li {
    background: #e0f2fe; 
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.error-list {
    margin-top: 10px;
    padding-left: 20px;
    list-style: none;
}

.error-list li {
    color: #dc2626; 
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 0;
}

.group-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.identifiers-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.identifiers-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.identifier-input label{
    flex: 1;
    font-weight: bold;
    margin-bottom: 0.5rem;
    min-width: 150px;
}

.password-label label{
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.password-label input{
    margin-bottom: 1rem;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 2rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#product-list, #queue {
    min-height: 200px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.draggable {
    cursor: grab;
}

.remove-button {
    margin-left: 10px;
}

.small-product {
    font-size: 0.85rem;
    padding: 5px 10px;
    flex: 1;
}

.input-quantity {
    width: 150px;
    margin-left: 10px;
}

.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
}

.move-button {
    margin-right: 10px;
}

.ocult { 
    display: none; 
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 2rem;
}

.weekday {
    background-color: #e0e7ff;
    color: #1e3a8a;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.9rem;
    user-select: none;
}

.day {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 10px 5px;
    text-align: center;
    min-height: 60px;
    font-size: 1rem;
    position: relative;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.day:hover {
    transform: scale(1.03);
    background-color: #e0f2fe;
}

.dots {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.month-title {
    font-size: 1.3rem;
    margin-top: 2rem;
    color: #1e3a8a;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    color: #111827;
}

.color-block {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

#legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 275px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Cambiado de center a stretch */
    padding-top: 2rem;
    justify-content: space-between;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
}
.sidebar .static-logo {
    align-self: flex-start;
    margin-left: 0;
    margin-bottom: 0;
}
.main-content-manual {
    margin-left: 250px;
    padding-top: 2rem;
}
@media (max-width: 768px) {
    .sidebar {
        width: 100vw;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }
    .sidebar .user-info {
        justify-content: flex-end;
        padding: 0;
    }
    .main-content-manual {
        margin-left: 0;
        padding-top: 6rem;
    }
}
.sidebar-nav {
    margin-top: 2rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
}
.sidebar-nav ul {
    list-style: none;
    padding-left: 0;
}
.sidebar-nav li {
    margin-bottom: 0.5rem;
}
.sidebar-nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}
.sidebar-nav a:hover {
    text-decoration: underline;
}
.file-line {
    font-size: 1em; 
}
.file-line code {
    background: #f5f5f5;
    color: #2d3a4a;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}