#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    z-index: 100;
}

/* Main navigation specific adjustments */
/* Remove the bottom border for the main nav and right-align its items */
#main-nav {
    border-bottom: none;
}

#main-nav ul {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: var(--spacing-small);
    padding-right: var(--spacing-base);
}

#main-nav li {
    margin: 0 0 0 6px; /* small left spacing between items */
}

/* Header specific adjustments */
header div:first-of-type {
    margin: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-small);
}

.header-actions a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-actions a:hover {
    background-color: rgba(79, 151, 215, 0.15);
    color: var(--color-primary);
}

.header-actions a:active,
.header-actions a.active {
    background-color: rgba(79, 151, 215, 0.2);
    color: var(--color-primary);
    font-weight: 600;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #323232;
    color: #ffffff;
    padding: 24px 36px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    font-size: 21px;
    font-weight: 500;
    z-index: 2000;
    animation: slideInDown 0.3s ease-out;
    max-width: 600px;
    word-wrap: break-word;
}

.toast.toast-success {
    background-color: #388e3c;
    color: #ffffff;
}

.toast.toast-info {
    background-color: #1976d2;
    color: #ffffff;
}

.toast.toast-warning {
    background-color: #f57c00;
    color: #ffffff;
}

.toast.toast-error {
    background-color: #d32f2f;
    color: #ffffff;
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Dark mode toast adjustments */
@media (prefers-color-scheme: dark) {
    .toast {
        background-color: #424242;
        color: #ffffff;
    }

    .toast.toast-success {
        background-color: #2e7d32;
    }

    .toast.toast-info {
        background-color: #1565c0;
    }

    .toast.toast-warning {
        background-color: #e65100;
    }

    .toast.toast-error {
        background-color: #c62828;
    }
}

/* Highlighted Job Row Styles */
.job-row-highlight {
    background-color: #fff9c4 !important;
    transition: background-color 3s ease-out;
}

@media (prefers-color-scheme: dark) {
    .job-row-highlight {
        background-color: #8b7a00 !important;
    }
}
