.kw-main-wrapper {
    background-color: #f0f2f5;
    padding: 20px;
    font-family: "Georgia", "Times New Roman", serif;
    color: #333;
}

/* Górny panel informacyjny */
.kw-global-header {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.kw-date-row {
    font-size: 20px;
    margin-bottom: 15px;
}

.kw-highlight {
    font-weight: bold;
}

.kw-info-row {
    display: flex;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

@media (max-width: 600px) {
    .kw-info-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* Siatka bloczków */
.kw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* Pojedynczy bloczek */
.kw-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Nagłówek bloczka (flaga + nazwy) */
.kw-card-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.kw-flaga {
    width: 32px;
    height: auto;
    margin-right: 12px;
    border: 1px solid #eee;
    align-self: center;
}

.kw-kod {
    font-size: 24px;
    font-weight: bold;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.kw-nazwa {
    font-size: 14px;
    font-style: italic;
    color: #555;
}

/* Tabela wewnątrz bloczka */
.kw-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.kw-table th {
    font-size: 10px;
    color: #777;
    text-align: right;
    font-weight: normal;
    padding-bottom: 8px;
    line-height: 1.2;
    border-bottom: 1px solid #ddd;
}

.kw-table th:first-child {
    text-align: left;
}

.kw-table td {
    padding: 8px 0;
    text-align: right;
    border-bottom: 1px solid #f2f2f2;
}

.kw-table tr:last-child td {
    border-bottom: none;
}

.kw-label {
    text-align: left !important;
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
}

.kw-val {
    font-family: "Georgia", serif;
    font-size: 18px;
    color: #111;
}

.kw-bold {
    font-weight: bold;
}

/* ---- DODATKOWE KLASY DLA ANIMACJI "CHMURKI" ---- */

.kw-table td.kw-val {
    position: relative;
    overflow: visible;
}

.kw-current {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.kw-ghost {
    position: absolute;
    top: 8px;
    right: 0; 
    z-index: 2;
    color: #111;
    font-family: "Georgia", serif;
    font-size: 18px;
    font-weight: bold;
    pointer-events: none;
    animation: animacjaChmurki 1s forwards cubic-bezier(0.1, 0.8, 0.3, 1);
    
    /* Zmiana punktu startowego transformacji na sam środek */
    transform-origin: center center; 
}

@keyframes animacjaChmurki {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        /* Powiększa się równomiernie i leci prosto w górę */
        transform: scale(2.2) translateY(-10px); 
        opacity: 0;
        filter: blur(3px);
    }
}

/* ---- EFEKT ODŚWIEŻENIA CAŁEGO BLOCZKA ---- */

.kw-card {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.kw-card-flash {
    animation: flashCardAnim 1s ease-out;
}

@keyframes flashCardAnim {
    0% {
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
        background-color: #f0f8ff;
    }
    100% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        background-color: #ffffff;
    }
}