﻿.dashboard-auth-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 20px;
    color: #fff;
    margin: 20px;
}

.dashboard-hero-logo {
    width: 120px;
    margin-bottom: 20px;
}

.dashboard-hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.dashboard-hero-actions button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.dashboard-home-container {
    padding: 8px;
    padding-top: 15px;
    max-width: 600px;
    margin: 0 auto;
}



.dashboard-welcome-title {
    font-size: 1.8rem; /* ok. 28px */
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-separator {
    margin: 16px 0;
    border: 5px;
    border-top: 1px solid black
}

/* Karta zajęć */
.dashboard-universal-card {
    border-radius: 12px;
    padding: 16px 11px;
    margin-top: 18px;
    box-shadow: var(--shadow-md);
    background: var(--gradient-tile);
    gap: 50px;
    position: relative;
}

/*.dashboard-instructor-card,
.dashboard-participant-card,
.dashboard-trainee-card {
    position: relative;
}*/

.dashboard-instructor-card,
.dashboard-participant-card,
.dashboard-trainee-card {
    position: relative;
}

.dashboard-trainee-card {
    padding-bottom: 30px;
}

.dashboard-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-card-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #4a6fa5;
}

.dashboard-class-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 3px;
}

.dashboard-level-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 2px;
}

.dashboard-level-description,
.dashboard-class-date {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 12px;
}

.dashboard-list-items {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}


.dashboard-instructor-on-class-info {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.dashboard-capital-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-instructor-label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

/* Sekcja kafelków – elastyczna siatka */

.dashboard-action-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 12px 14px;
    transition: opacity 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    opacity: 1;
}

    .dashboard-action-block.disappear {
        opacity: 0;
    }


.dashboard-action-content {
    flex: 1;
}


.dashboard-action-item-row {
    display: flex;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

    .dashboard-action-item-row.disappear {
        opacity: 0;
    }

/*.dashbaction-item-row.fade-out {
        background: red;
    }*/

.dashboard-action-item-dismiss-btn {
    background: transparent;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

    .dashboard-action-item-dismiss-btn:hover {
        opacity: 1;
        transform: scale(1.15);
    }

    .dashboard-action-item-dismiss-btn svg path {
        stroke: #4a6fa5;
    }


.dashboard-action-clickable {
    cursor: pointer;
}

.dashboard-action-block.dashboard-action-clickable:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.85);
}
/* Tytuł sekcji akcji */
.dashboard-action-title {
    font-size: 14px;
    font-weight: 600;
    /*color: var(--color-primary);*/
    color: #1d5296;
    margin-bottom: 6px;
}

.dashboard-action-title-enlarged {
    font-size: 18px;
}
/* Opis / podtytuł */
.dashboard-action-description {
    font-size: 12px;
    color: #555;
}
/* Lista elementów */
.dashboard-action-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dashboard-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /*NA PRZYSZŁOŚĆ FLEXA ZOSTAWIMY JAKBY COS DODAWAC*/
    min-height: 18px; /* min, nie max: wiersz zawinięty do dwóch linii ma urosnąć, a nie wylać się na odstęp do sąsiada */
    font-size: 12px;
    padding: 1px 6px;
    border-left: 2px solid rgba(74, 111, 165, 0.35);
    color: #444;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

/* Wpis, którego użytkownik jeszcze nie kliknął. Po kliknięciu wraca do zwykłej grubości. */
.dashboard-action-item-unread {
    font-weight: var(--font-weight-bold);
}

/* Wpis, który nie wisi już na stronie głównej: załatwiony, nieaktualny albo ukryty (strona historii
   powiadomień). Przygaszony kolorem tekstu, nie przezroczystością. */
.dashboard-action-item-inactive {
    color: var(--color-status-font-neutral);
}

/* Mały drugi wiersz wpisu, np. data powstania. Zawsze zwykłej grubości, także przy wpisie nieprzeczytanym. */
.dashboard-action-item-second-line {
    font-size: var(--font-size-xxs);
    font-weight: var(--font-weight-normal);
    color: var(--color-status-font-neutral);
}

.dashboard-action-item-clickable {
    cursor: pointer;
}

    .dashboard-action-item-clickable:hover {
        transform: translateY(-1px);
        /* background: rgba(74, 111, 165, 0.04);  ledwo widoczne */
        border-left-color: rgba(74, 111, 165, 0.55); /* minimalne wzmocnienie */
    }

.dashboard-main-tile-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dashboard-main-tile-title {
    margin-top: 2rem;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #4a6fa5;
}
/* Rola użytkownika */
.dashboard-user-role {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.dashboard-environment-indicator {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
}

    .dashboard-environment-indicator.dev {
        /*background: #ffa94d;*/
        background: linear-gradient(90deg, #006e11, #7bed8c);
    }

    .dashboard-environment-indicator.test {
        /*background: #4dabf7;*/
        background: linear-gradient(90deg, #008eb9, #6adcff);
    }


/*.item-fade-highlight {
    animation: fadeOutListItem 3s ease-out forwards;
}
*/

.dashboard-item-fade-highlight {
    animation: fadeListItem 2s ease-out forwards;
}

@keyframes fadeListItem {
    0% {
        border-left-color: black;
        color: black;
    }

    100% {
        border-left-width: 2px;
        border-left: 2px solid rgba(74, 111, 165, 0.35);
    }
}

@media (min-width: 641px) {
    .dashboard-welcome-title {
        font-size: 2.2rem;
    }
}
