/**
 * Neurolog Disease List - Styles
 */

.neurolog-disease-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Taby */
.ndl-tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.ndl-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.ndl-tab:hover {
    color: #007bff;
    background: #f5f5f5;
}

.ndl-tab.ndl-tab-active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Lista chorób */
.ndl-disease-grid {
    position: relative;
}

.ndl-list {
    padding: 0;
    margin: 0;
    display: none;
}

.ndl-list.ndl-list-active {
    display: block;
}

/* Nagłówek listy */
.ndl-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
}

.ndl-list-header .ndl-disease-name {
    color: white;
}

.ndl-list-header .ndl-disease-code {
    color: white;
}

.ndl-list-header .ndl-disease-code strong {
    color: white;
    font-weight: 600;
}

.ndl-list-header .ndl-patient-count {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Lista ul */
.ndl-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndl-list ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.ndl-list ul li:hover {
    background-color: #f0f8ff;
}

.ndl-list ul li:nth-child(even) {
    background-color: #f9f9f9;
}

.ndl-list ul li:nth-child(even):hover {
    background-color: #e8f4ff;
}

.ndl-disease-name {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.ndl-disease-code {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ndl-disease-code strong {
    color: #007bff;
    font-weight: 600;
    font-size: 15px;
}

.ndl-patient-count {
    color: #666;
    font-size: 14px;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Komunikaty błędów */
.ndl-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .neurolog-disease-list {
        padding: 10px;
    }

    .ndl-list-header,
    .ndl-list ul li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .ndl-disease-code {
        width: 100%;
        justify-content: space-between;
    }

    .ndl-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Animacja ładowania */
.ndl-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ndl-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}
