/* --- Dark Theme --- */

/* Główny kontener na ogłoszenia */
.ogloszenia-container {
    position   : relative;
    /* Niezbędne do pozycjonowania slajdów */
    display    : block;
    transition : height 0.3s ease-in-out;
    /* Animacja zmiany wysokości */
    font-family: Arial, sans-serif;
}

/* Pojedynczy element ogłoszenia (karta) */
.ogloszenie-item {
    position        : absolute;
    top             : 0;
    left            : 0;
    width           : 100%;
    display         : flex;
    background-color: #2c2c2c;
    border-radius   : 10px;
    overflow        : hidden;
    border          : 1px solid #444;
    box-shadow      : 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity         : 0;
    transform       : scale(0.98);
    transition      : opacity 0.6s ease-in-out, transform 0.6s ease-in-out, box-shadow 0.3s ease;
}

.ogloszenie-item.active {
    opacity  : 1;
    transform: scale(1);
}

.ogloszenie-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Boczny panel (1/4) z ikoną i tytułem */
.ogloszenie-sidebar {
    flex           : 1;
    display        : flex;
    flex-direction : column;
    align-items    : center;
    justify-content: center;
    padding        : 15px;
    text-align     : center;
    color          : #fff;
    min-width      : 120px;
    /* Zapobiega zbytniemu zwężaniu */
}

/* Główna część (3/4) z treścią */
.ogloszenie-main {
    flex            : 3;
    padding         : 15px 20px;
    background-color: #333;
    border-left     : 1px solid #444;
}

/* Duża ikona w panelu bocznym */
.ogloszenie-icon {
    width          : 120px;
    height         : 120px;
    border-radius  : 50%;
    border         : 3px solid #000000;
    display        : flex;
    justify-content: center;
}

.ogloszenie-type-text {
    font-size  : 1.1em;
    font-weight: 600;
    color      : #fff;
    margin-top : 5px;
    opacity    : 0;
    transform  : translateY(10px);
    transition : opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.ogloszenie-item.active .ogloszenie-type-text {
    opacity  : 1;
    transform: translateY(0);
}

.ogloszenie-icon-img {
    object-fit: contain;
    /* Zapobiega rozciąganiu obrazka */
    transition: transform 0.3s ease;
}

/* Tytuł w panelu bocznym */
.ogloszenie-sidebar h2 {
    margin     : 0;
    font-size  : 1.2em;
    line-height: 1.3;
    font-weight: 600;
    opacity    : 0;
    transform  : translateY(10px);
    transition : opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.ogloszenie-item.active .ogloszenie-sidebar h2 {
    opacity  : 1;
    transform: translateY(0);
}

/* Tytuł w głównej części ogłoszenia */
.ogloszenie-title-main {
    margin-top    : 0;
    margin-bottom : 15px;
    font-size     : 1.4em;
    color         : #e0e0e0;
    font-weight   : 600;
    border-bottom : 1px solid #444;
    padding-bottom: 10px;
    line-height   : 1.3;
}

/* Treść ogłoszenia */
.ogloszenie-content {
    line-height: 1.6;
    color      : #bbb;
    font-size  : 0.9em;
}

.ogloszenie-item.active .ogloszenie-content {
    animation: fadeInContent 0.6s ease 0.3s forwards;
}

@keyframes fadeInContent {
    from {
        opacity  : 0;
        transform: translateY(5px);
    }

    to {
        opacity  : 1;
        transform: translateY(0);
    }
}

/* Brak ogłoszeń */
.no-ogloszenia {
    text-align      : center;
    padding         : 30px 20px;
    background-color: #2c2c2c;
    border          : 1px solid #444;
    border-radius   : 8px;
    color           : #888;
}

/* Kolory dla typów - teraz kolorują cały boczny panel */
.ogloszenie-item.type-wazne .ogloszenie-sidebar {
    background: linear-gradient(145deg, #c7302d, #a12825);
}

.ogloszenie-item.type-wazne {
    border-color: #a12825;
}

.ogloszenie-item.type-informacja .ogloszenie-sidebar {
    background: linear-gradient(145deg, #2f81f7, #1c68d1);
}

.ogloszenie-item.type-informacja {
    border-color: #1c68d1;
}

.ogloszenie-item.type-pytanie .ogloszenie-sidebar {
    background: linear-gradient(145deg, #d29922, #b07f1c);
}

.ogloszenie-item.type-pytanie {
    border-color: #b07f1c;
}

.ogloszenie-item.type-nieznany .ogloszenie-sidebar {
    background: linear-gradient(145deg, #6c757d, #5a6268);
}

.ogloszenie-item.type-nieznany {
    border-color: #6c757d;
}

/* --- Style dla powiadomienia admina --- */
.admin-notification-popup {
    position        : fixed;
    bottom          : 20px;
    right           : 20px;
    width           : 320px;
    background-color: #2d3748;
    color           : #e2e8f0;
    border-radius   : 8px;
    box-shadow      : 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index         : 1000;
    border          : 1px solid #4a5568;
    font-family     : Arial, sans-serif;
    animation       : slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity  : 0;
    }

    to {
        transform: translateY(0);
        opacity  : 1;
    }
}

.anp-header {
    display                : flex;
    justify-content        : space-between;
    align-items            : center;
    padding                : 10px 15px;
    background-color       : #4a5568;
    border-top-left-radius : 8px;
    border-top-right-radius: 8px;
}

.anp-title {
    font-weight: bold;
    font-size  : 16px;
}

.anp-close-btn {
    background : none;
    border     : none;
    color      : #a0aec0;
    font-size  : 24px;
    cursor     : pointer;
    line-height: 1;
    padding    : 0 5px;
}

.anp-close-btn:hover {
    color: #fff;
}

.anp-body {
    padding    : 15px;
    font-size  : 14px;
    line-height: 1.5;
}

.anp-link {
    display        : block;
    margin-top     : 10px;
    color          : #63b3ed;
    text-decoration: none;
    font-weight    : bold;
}

.anp-link:hover {
    text-decoration: underline;
}