.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    top: 0;
    left: 0;
    border-radius: 8px;
    width: 100%;
    margin-top: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-text h1 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.header-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-container {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.notification-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.notification-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 340px;
    max-height: 400px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.notification-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.notification-list {
    padding: 10px 0;
    overflow-y: scroll;
    height: 350px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #d9d9e1;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notification-content p {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #1F2937;
    line-height: 1.4;
}

.notification-date {
    font-size: 12px;
    color: #4B5563;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.username {
    font-weight: 600;
    color: #1F2937;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.main-content {
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-header.home {
    flex-direction: column;
    width: 100%;
}

.main-header.no-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-direction: row;
    width: 100%;
}

.view-content {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.main-title-view {
    font-size: 42px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 0 10px 0;
    text-align: center;
}

.content-subtitle-view {
    display: flex;
    justify-content: space-between;
    max-height: 42px;
    width: 100%;
}

.main-subtitle-view {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 9999999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F2937;
    font-size: 16px;
    font-weight: 450;
    box-shadow: var(--shadow);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}

.content-subtitle-view {
    display: flex;
    position: relative;
}

.content-subtitle-view .content-right {
    width: 210px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.dashboard-summary-count {
    width: 100%;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow);
}

.dashboard-card.card-departures,
.dashboard-card.card-returns,
.dashboard-card.card-record,
.dashboard-card.card-send {
    cursor: pointer;
}

.dashboard-card.card-send {
    position: relative;
}

.pending-badge-1 {
    position: absolute;
    top: -7px;
    right: -5px;
    background-color: #E53935;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    font-weight: 350;
    display: flex;
    padding: 2px 6px;
    border-radius: 999px;
    z-index: 1;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
}

.pending-badge-2 {
    position: absolute;
    top: -18px;
    right: -13px;
    background-color: #E53935;
    color: white;
    font-size: 14px;
    width: 28px;
    height: 28px;
    font-weight: 440;
    display: flex;
    padding: 2px 6px;
    border-radius: 999px;
    z-index: 1;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
}

@keyframes tilt45 {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(35deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.dashboard-card:hover {
  transform: translateY(-4px);
}

.dashboard-card:hover .card-icon iconify-icon,
.newCodeButton:hover iconify-icon {
  animation: tilt45 0.4s ease;
}

.dashboard-card.card-departures {
    border-top: 8px solid #3B7BE5;
}

.dashboard-card.card-returns {
    border-top: 8px solid #25B85B;
}

.dashboard-card.card-record {
    border-top: 8px solid #FF9800;
}

.dashboard-card.card-send {
    border-top: 8px solid #29B6F6; 
}

.dashboard-card.card-count-transit {
    border-left: 8px solid #7F8897;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.card-departures .card-icon {
    background: linear-gradient(180deg, #3B7BE5, #1F4BA0);
}

.card-returns .card-icon {
    background: linear-gradient(180deg, #25B85B, #197C3F);
}

.card-record .card-icon {
    background: linear-gradient(180deg, #FF9800, #C66900);
}

.card-send .card-icon {
    background: linear-gradient(180deg, #4FC3F7, #0288D1); 
}

.card-count-transit .card-icon {
    background: linear-gradient(180deg, #7F8897, #555D6A);
}

.dashboard-card .card-content {
    width: 100%;
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1F2937;
}

.card-content p {
    font-size: 14px;
    color: #4B5563;
    margin: 0;
}

.card-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 5px 0 0 0;
}

.card-gray {
    justify-content: space-between;
}

.card-gray .card-content {
    flex: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    pointer-events: none;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0px);
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 iconify-icon {
    color: #000;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.step-indicators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    gap: 20px;
}

.step-visuals, .step-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-item.completed .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-check {
    display: none;
    font-size: 18px;
}

.step-item.completed .step-check {
    display: block;
}

.step-item.completed .step-number,
.step-item.active .step-number {
    display: none;
}

.step-item.active .step-number {
    display: block;
    color: white;
}

.step-number {
    font-weight: 600;
    font-size: 16px;
}

.step-label {
    font-size: 14px;
    color: #1F2937;
    font-weight: 500;
    text-align: center;
}

.step-line {
    width: 100%;
    height: 2px;
    background: #ddd;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: var(--primary-color);
}

.modal-content {
    padding: 0 30px 20px;
    max-height: 290px;
    overflow-y: auto;
}

.module-content {
    flex-direction: column;
    gap: 20px;
}

.module-content {
    display: none;
}

.module-content.active {
    display: flex;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-preview {
    background: #444;
    border-radius: 8px;
    padding: 20px 80px;
}

.pdf-document {
    background: white;
    padding: 20px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.company-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
}

.company-info p {
    margin: 2px 0;
    font-size: 11px;
}

.pdf-logo {
    height: 40px;
    width: auto;
}

.pdf-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-field {
    display: flex;
    gap: 10px;
}

.field-label {
    font-weight: bold;
    min-width: 80px;
}

.field-value {
    border-bottom: 1px solid #333;
    flex: 1;
}

.field-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.field-id .id {
    border: 1px solid black !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    width: 45px !important;
    height: 100%;

}

.pdf-footer .title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #333;
}

.contenido-pdf-parrafo {
    font-size: 11px;
    text-align: center;
    width: 100%;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.btn-back {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #f5f5f5;
    color: #333;
}

.footer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.success-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 25px;
    border-radius: 999999999px;
    display: flex;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    gap: 10px;
    font-weight: 450;
    box-shadow: var(--shadow);
    transform: translateY(10px);
    z-index: 10001;
    transition: all 0.3s ease;
}

.success-notification.show {
    display: flex;
    pointer-events: all;
    opacity: 1;
    transform: translateY(-10px);
}