.notam-archive {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.notam-filter {
    margin: 0 auto;
    background: #f5f8fc;
    border: 1px solid #d7e2f2;
    border-radius: 10px;
    padding: 1rem;
}

.notam-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.notam-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
    min-width: 140px;
}

.notam-filter-field--date {
    min-width: 220px;
}

.notam-filter-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.notam-filter-field span {
    font-size: 0.85rem;
    color: #3b4861;
}

.notam-filter-field input {
    height: 38px;
    border: 1px solid #c3d0e6;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
    background: #fff;
    color: #1a2333;
}

.notam-filter-field input:focus {
    outline: none;
    border-color: #3d7fff;
    box-shadow: 0 0 0 2px rgba(61, 127, 255, 0.15);
}

.notam-filter-field input[disabled] {
    background: #eef2fc;
    color: #7a889f;
    cursor: not-allowed;
}

.notam-filter-field select {
    height: 38px;
    border: 1px solid #c3d0e6;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
    background: #fff;
    color: #1a2333;
}

.notam-filter-field select:focus {
    outline: none;
    border-color: #3d7fff;
    box-shadow: 0 0 0 2px rgba(61, 127, 255, 0.15);
}

.notam-filter-field--grow {
    flex: 1 1 220px;
}

.notam-filter-field--page-size {
    min-width: 140px;
}

.notam-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3b4861;
    cursor: pointer;
    user-select: none;
    align-self: flex-start;
    margin-top: 0.1rem;
}

.notam-filter-field--date-disabled span {
    color: #7a889f;
}

.notam-filter-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #214dff;
}

.notam-status {
    min-height: 1.4rem;
    font-size: 0.95rem;
    color: #33405c;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.notam-status--error {
    color: #c0392b;
}

.notam-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.notam-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 860px;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.notam-pagination--top {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.notam-pagination--bottom {
    margin-top: 0.75rem;
}

.notam-pagination__btn {
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    border: 1px solid rgba(33, 77, 255, 0.25);
    background: rgba(33, 77, 255, 0.08);
    color: #1d2a4a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 0 0.8rem;
}

.notam-pagination__btn:hover:not(:disabled) {
    background: rgba(33, 77, 255, 0.15);
    border-color: rgba(33, 77, 255, 0.4);
}

.notam-pagination__btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.notam-pagination__btn.is-active {
    background: #214dff;
    color: #fff;
    border-color: #214dff;
    opacity: 1;
}

.notam-pagination__btn.is-nav {
    font-weight: 500;
}

.notam-disclaimer {
    max-width: 860px;
    margin: 0.75rem auto 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #4a5975;
    background: rgba(255, 196, 85, 0.12);
    border: 1px solid rgba(255, 196, 85, 0.4);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.notam-results__empty {
    padding: 2rem 1.5rem;
    border: 1px dashed #c3d0e6;
    border-radius: 10px;
    text-align: center;
    color: #7a889f;
    font-size: 0.95rem;
}

.notam-card {
    border-radius: 12px;
    border: 1px solid rgba(28, 56, 120, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: 0 20px 40px -22px rgba(12, 28, 64, 0.35);
    padding: 1.55rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.notam-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.notam-card__title {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.notam-card__icao {
    background: #214dff;
    color: #fff;
    border-radius: 6px;
    padding: 0.1rem 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.notam-card__number {
    background: #ff8f35;
    color: #fff;
    border-radius: 6px;
    padding: 0.1rem 0.65rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notam-card__id {
    background: #e8efff;
    color: #214dff;
    border-radius: 6px;
    padding: 0.1rem 0.65rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.notam-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem 1rem;
    width: 100%;
}

.notam-card__meta-item {
    background: rgba(33, 77, 255, 0.05);
    border: 1px solid rgba(33, 77, 255, 0.12);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.notam-card__meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5e6c8e;
    font-weight: 700;
}

.notam-card__meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2b42;
}

.notam-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.notam-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem 1.4rem;
    padding: 1rem 1.1rem;
    background: rgba(33, 77, 255, 0.05);
    border: 1px solid rgba(33, 77, 255, 0.12);
    border-radius: 8px;
}

.notam-card__grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notam-card__grid-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6f7da0;
    font-weight: 700;
}

.notam-card__grid-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #21304d;
    line-height: 1.35;
    word-break: break-word;
}

.notam-card__schedule {
    font-size: 0.92rem;
    color: #34415b;
    background: rgba(255, 143, 53, 0.08);
    border: 1px solid rgba(255, 143, 53, 0.18);
    padding: 0.9rem 1rem;
    border-radius: 8px;
}

.notam-card__text {
    font-family: "Roboto Mono", "Courier New", Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    background: rgba(22, 36, 78, 0.05);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    color: #1f2b42;
    white-space: pre-wrap;
}

.notam-card__raw {
    font-family: "Roboto Mono", "Courier New", Courier, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    margin: 0;
    background: #f0f4ff;
    border-radius: 8px;
    padding: 0.9rem;
    color: #1f2b42;
}

body.dark-mode .notam-filter {
    background: #1f2633;
    border-color: #283349;
}

body.dark-mode .notam-filter-field span {
    color: #c7d2eb;
}

body.dark-mode .notam-filter-field input {
    background: #0f1623;
    color: #eef2ff;
    border-color: #31415b;
}

body.dark-mode .notam-filter-field select {
    background: #0f1623;
    color: #eef2ff;
    border-color: #31415b;
}

body.dark-mode .notam-filter-field select:focus {
    border-color: #6b8aff;
    box-shadow: 0 0 0 2px rgba(107, 138, 255, 0.18);
}

body.dark-mode .notam-filter-field input:focus {
    border-color: #6b8aff;
    box-shadow: 0 0 0 2px rgba(107, 138, 255, 0.18);
}

body.dark-mode .notam-filter-field input[disabled] {
    background: #172030;
    color: #5f6f92;
}

body.dark-mode .notam-filter-checkbox {
    color: #c7d2eb;
}

body.dark-mode .notam-filter-checkbox input {
    accent-color: #6b8aff;
}

body.dark-mode .notam-filter-field--date-disabled span {
    color: #5f6f92;
}

body.dark-mode .notam-status {
    color: #c7d2eb;
}

body.dark-mode .notam-results__empty {
    border-color: #31415b;
    color: #94a7ca;
}

body.dark-mode .notam-card {
    background: linear-gradient(180deg, #0f1b30 0%, #091323 100%);
    border-color: rgba(104, 136, 255, 0.18);
    box-shadow: 0 26px 48px -20px rgba(0, 0, 0, 0.72);
}

body.dark-mode .notam-card__id {
    background: rgba(66, 93, 190, 0.28);
    color: #a5bcff;
}

body.dark-mode .notam-card__number {
    background: #ff8f35;
    color: #1d1206;
}

body.dark-mode .notam-card__meta-item {
    background: rgba(97, 130, 255, 0.1);
    border-color: rgba(97, 130, 255, 0.22);
}

body.dark-mode .notam-card__meta-label {
    color: #8ea1d8;
}

body.dark-mode .notam-card__meta-value {
    color: #d3dcff;
}

body.dark-mode .notam-card__grid {
    background: rgba(97, 130, 255, 0.08);
    border-color: rgba(97, 130, 255, 0.2);
}

body.dark-mode .notam-card__grid-label {
    color: #8ea1d8;
}

body.dark-mode .notam-card__grid-value,
body.dark-mode .notam-card__schedule {
    color: #d3dcff;
}

body.dark-mode .notam-card__schedule {
    background: rgba(255, 159, 77, 0.14);
    border-color: rgba(255, 159, 77, 0.28);
}

body.dark-mode .notam-card__text,
body.dark-mode .notam-card__raw {
    background: #11192a;
    color: #d8e2ff;
}

body.dark-mode .notam-disclaimer {
    background: rgba(255, 196, 85, 0.14);
    border-color: rgba(255, 196, 85, 0.35);
    color: #f0e5c7;
}

body.dark-mode .notam-pagination__btn {
    border-color: rgba(97, 130, 255, 0.3);
    background: rgba(97, 130, 255, 0.12);
    color: #d3dcff;
}

body.dark-mode .notam-pagination__btn:hover:not(:disabled) {
    background: rgba(112, 145, 255, 0.22);
    border-color: rgba(112, 145, 255, 0.45);
}

body.dark-mode .notam-pagination__btn.is-active {
    background: #7490ff;
    border-color: #7490ff;
    color: #0a1526;
}
