﻿
.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}



/*   moje  */
.page-dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.blue-background-class {
    background-color: cornflowerblue;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/*
 * Blazor po nawigacji ustawia focus na pierwszym elemencie strony (dla screen readerów).
 * :focus:not(:focus-visible) — nowoczesna metoda
 * Selektory elementów — fallback dla starszego WKWebView / Safari
 */
:focus:not(:focus-visible) {
    outline: none;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
div:focus, article:focus, section:focus, main:focus,
p:focus, span:focus, ul:focus, li:focus {
    outline: none;
}

:root {
    --primary-bg: #fcfaf8;
    --primary-text: #333;
    --accent-text: #4a6572;
    --midle-text: #5C6F7D;
    --secondary-accent: #344955;
    --nc-red: #591111;
    --nc-blue: #16293c;
    --nc-red-bg: #59111180;
    --nc-blue-bg: #16293c80;
}

.dark-mode {
    --primary-bg: #333;
    --primary-text: #fcfaf8;
    --accent-text: #bb86fc;
    --midle-text: #5C6F7D;
    --secondary-accent: #03dac6;
    background-color: #333;
    color: #fcfaf8;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fcfaf8;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.title-header {
    font-size: 34px;
    font-weight: 300;
    margin: 0px 20px 5px 20px;
    text-align: left;
}


.line-header {
    height: 1px;
    background: #333;
    margin: 0px;
    margin-bottom: 5px;
    width: 100%;
}


.subtitle-header {
    margin: 20px;
    margin-top: 0px;
    text-align: left;
    font-weight: 300;
}

.light-mode {
    background-color: #fcfaf8;
    color: #333;
}

/* ====== PANEL – FINAL FIX ====== */
.side-panel {
    --panel-width: 52px;
    --panel-width-expanded: 220px;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--panel-width);
    background: #fff;
    border-right: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width .3s ease;
    z-index: 1000;
}

.action-button {
    background-color: #EBE4DD;
    color: #5C6F7D;
    border: none;
    padding: 15px 35px;
    margin: 35px 15px 0px 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .action-button:hover {
        background-color: #B5A89E;
        color: #FFFFFF;
    }

/*.menu-button {
    position: absolute;
    bottom: 0;
    left: var(--panel-width);
    width: calc(100% - var(--panel-width));
    background: var(--nc-red);
    z-index: 1000;
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}*/
.menu-button {
    position: fixed;
    bottom: 0;
    left: var(--panel-width);
    width: calc(100% - var(--panel-width));
    z-index: 1000;
    background: var(--nc-red);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

    /* Przyciski nawigacji kreatora — pasek jest ciemnoczerwony w obu motywach,
       więc przyciski mają stałe jasne tło i ciemny tekst, niezależnie od motywu */
    .menu-button .action-button {
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.35);
        background-color: #fcfaf8;
        color: var(--nc-red, #591111);
        border: 1px solid transparent;
        padding: 8px 28px;
        margin: 5px;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    }

        .menu-button .action-button:hover:not(:disabled) {
            background-color: #EBE4DD;
            transform: translateY(-1px);
        }

        .menu-button .action-button:disabled {
            background-color: rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.5);
            box-shadow: none;
            cursor: not-allowed;
        }

        /* Przycisk finalizujący (np. „Dodaj") — zielony, wyróżnia się od pozostałych */
        .menu-button .action-button-primary {
            background-color: #28a745;
            color: #ffffff;
        }

            .menu-button .action-button-primary:hover:not(:disabled) {
                background-color: #218838;
            }

/* Na dużych ekranach pasek przycisków ginie przyklejony do dołu viewportu —
   zamiast tego wstawiamy go w naturalny przepływ, tuż pod panelami kreatora */
@media (min-width: 845px) {
    .menu-button {
        position: static;
        left: auto;
        width: 100%;
        margin-top: 20px;
    }
}
/* ======== activity-section ======== */
.activity-section,
.notifications-section {
    flex: 1;
    min-width: 400px; /* Minimalna szerokość kolumny */
    max-width: 1000px;
    padding: 0px; /* Brak paddingu, treści są luźne */
    text-align: left;
    margin: 20px;
}

    .activity-section h3,
    .notifications-section h3 {
        font-size: 20px;
        font-weight: 500;
        color: #5C6F7D;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(220, 220, 220, 0.3); /* Delikatna linia */
        padding-bottom: 10px;
    }

    .activity-section input,
    .notifications-section input {
        background: inherit;
        color: inherit;
    }

    .activity-section ul,
    .notifications-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .activity-section li,
    .notifications-section li {
        font-size: 15px;
        color: #5C6F7D;
        margin-bottom: 15px;
        position: relative;
        padding-left: 20px;
    }

        .activity-section li:before,
        .notifications-section li:before {
            content: "\2022"; /* Kropka jako lista */
            color: #B5A89E; /* Kolor kropki */
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
            position: absolute;
            left: 0;
            top: 0;
        }


/*Priority*/
.priority-ordre {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

    .priority-ordre.priority-low {
        background: #4CAF50; /* Zielony - spokojny, bezpieczny */
        color: #fff;
    }

    .priority-ordre.priority-normal {
        background: #2196F3; /* Niebieski - neutralny, informacyjny */
        color: #fff;
    }

    .priority-ordre.priority-important {
        background: #FF9800;
        color: #212529 !important;
    }

    .priority-ordre.priority-high {
        background: #F44336;
        color: #fff !important;
    }

    .priority-ordre.priority-critical {
        background: #97242f; /* Twoj bazowy bordowy - krytyczny */
        color: #fff;
    }

/* lista */
.side-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-panel li a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    gap: 12px;
    text-decoration: none !important;
    color: #B5A89E !important;
}

    .side-panel li a:hover {
        background: radial-gradient(at center, #1B4269 0%, #16293c 80%);
        color: #fff !important;
    }

    .side-panel li a.active {
        background: #1B4269;
        color: #fff !important;
        box-shadow: inset 3px 0 0 #B5A89E;
    }

.logout-link {
    color: #e53935 !important;
}

/* ikona – zawsze na środku */
.side-panel .icon {
    font-size: 20px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* tekst – ZNIKA CAŁKOWICIE gdy zwinięte */
.side-panel .text {
    white-space: nowrap;
    overflow: hidden;
    width: 0; /* nie zajmuje miejsca */
    opacity: 0;
    transition: opacity .2s .15s, width 0s .3s;
}

.side-panel.expanded .text {
    width: auto; /* rozszerza się dopiero po rozwinięciu */
    opacity: 1;
}
/* Zablokuj podkreślenia tylko w panelu */
.side-panel a {
    text-decoration: none !important;
}

/* menu-dropdown */
.menu-dropdown {
    position: absolute;
    z-index: 100;
    background: var(--primary-bg);
    color: var(--primary-text);
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    min-width: 170px;
    padding: 4px 0;
    overflow: hidden;
    transform: translateX(-150px);
}

.dropdown-separator {
    padding: 6px 12px 4px 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    color: var(--primary-text);
    opacity: 0.75;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    margin-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .dropdown-item:hover {
        background: rgba(128, 128, 128, 0.18);
    }

    .dropdown-item.danger {
        color: #e05260;
    }

        .dropdown-item.danger:hover {
            background: rgba(224, 82, 96, 0.15);
        }

.message-actions {
    display: flex;
    gap: 15px;
}

/* FAB Button */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0,123,255,0.3);
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fab-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(0,123,255,0.4);
    }


.btn-report-problem {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
    /* Zamiast pulse — bounce 
    animation: bounce 1s infinite alternate;*/
    /* Zamiast pulse — shake co 5s
    animation: shake 0.8s 5s infinite; */
}


    /* Ikona */
    .btn-report-problem .icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    /* Efekt hover */
    .btn-report-problem:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 30px rgba(231, 76, 60, 0.6);
        animation: none; /* Wyłącza animację po najechaniu */
    }

    /* Efekt kliknięcia */
    .btn-report-problem:active {
        transform: translateY(0) scale(1);
        box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
    }

    /* Fokus dla dostępności */
    .btn-report-problem:focus-visible {
        outline: 3px solid #f39c12;
        outline-offset: 2px;
    }

/* Animacja przyciągająca uwagę */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .btn-report-problem {
        bottom: 20px;
        right: 20px;
        padding: 14px 20px;
        font-size: 16px;
    }

        .btn-report-problem .icon {
            width: 20px;
            height: 20px;
        }
}
