/**
 * IWS - Style bazowe dla Shortcodów
 */

/* ALERTY I RAMKI */
.iws-box {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    line-height: 1.7;
}

.iws-box-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

.iws-box-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.iws-box-content p:last-child {
    margin: 0;
}

.iws-box-paperfirst {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.35rem;
    line-height: 1.6;
}

.iws-box-nauczyciel {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-left: 4px solid #475569;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

.iws-nauczyciel-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 0.4rem;
}

/* ZADANIA */
.iws-task-box {
    border: 2px solid;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    line-height: 1.7;
}

.iws-task-badge {
    position: absolute;
    top: -16px;
    left: 20px;
    color: #FFFFFF;
    padding: 0.2rem 1.2rem;
    border-radius: 20px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.iws-task-box p {
    margin: 0;
    font-size: 1rem;
}

/* TABELA */
.iws-table-container figure,
.wp-block-table.iws-tabela {
    margin: 0 !important;
    padding: 0 !important;
}

.iws-table-container table,
.wp-block-table.iws-tabela table,
table.iws-tabela {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 2rem 0 !important;
    background-color: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #E2E8F0 !important;
    font-family: 'Nunito', sans-serif !important;
}

.iws-table-container table th,
.iws-table-container table td,
.wp-block-table.iws-tabela table th,
.wp-block-table.iws-tabela table td,
table.iws-tabela th,
table.iws-tabela td {
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

.iws-table-container table td,
.wp-block-table.iws-tabela table td,
table.iws-tabela td {
    border-bottom: 1px solid #E2E8F0 !important;
    font-size: 0.95rem !important;
    color: #1A1A2E !important;
    background: #fff !important;
}

.iws-table-container table tr:last-child td,
.wp-block-table.iws-tabela table tr:last-child td,
table.iws-tabela tr:last-child td {
    border-bottom: none !important;
}

.iws-table-container table th,
.wp-block-table.iws-tabela table th,
table.iws-tabela th {
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: none !important;
}
