/* TŁO */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: #5f2a54;

    overflow: hidden;
}
.main-box {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.system-tray {
    width: 100%;           
    height: 28px;            
    background-color: #000000;
    color: #e2e2e2;
    
    display: flex;
    flex-direction: row;
    align-items: center;    
    flex-wrap: nowrap;     
    
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    font-family: "Canterell", sans-serif;
    font-weight: 400;
    font-size: 12px;

}

.system-tray-option {
    height: 100%;            
    display: flex;
    align-items: center;
    
    padding: 0 15px;         
    
    white-space: nowrap;   
    cursor: pointer;
}

.data {
    font-weight: bold;
    width: 70vw;
    max-width: 90vw;        
    justify-content: center;
}

.right-icons {
    margin-left: 0 !important; 
}

/* Ikony z większymi przerwami */
.icon-right-wide {
    padding: 0 15px !important; 
}

/* Ikony z mniejszymi przerwami */
.icon-right-tight {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 5px !important; /
}

/* Ostatnia ikona przy samej krawędzi */
.system-tray-option:last-child {
    margin-right: 0 !important;
}

.system-tray-option img {
    height: 20px;
}

 #przycisk-dzwieku {
            z-index: 9999;
            background: none; 
            border: none;   
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
        }

        /* Wielkość grafiki wewnątrz przycisku */
        #przycisk-dzwieku img {
            display: block;
        }

        /* Efekt po najechaniu myszką */
        #przycisk-dzwieku:hover {
            transform: scale(1.1);
            opacity: 0.9;
        }

/* Ustawienie odtwarzacza wideo z YouTube na ukryty */
        #yt-player {
            position: fixed;
            top: 0;
            left: -9999px; /* won za obszar */
            width: 300px;
            height: 200px;
        }

.desktop {
    
    height: calc(100vh - 28px);
    position: relative;
    width: 100vw;

    top: 28px;      
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    position: absolute;
    
    background-image: url('IMG/mr-robot-wallpaper-5-wallpapercave.com.jpg'); 
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment:fixed; 
}

/*====================================================================
                            STYLE IKON
======================================================================*/

.desktop-icon {
    position: absolute;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: grab;
    
    /* KLUCZOWE DLA SMARTFONÓW: Wyłącza gesty przeglądarki podczas dotyku */
    touch-action: none; 
}

/* Zmiana kursora w trakcie przeciągania */
.desktop-icon:active {
    cursor: grabbing;
}

/* Styl samego obrazka w ikonie */
.desktop-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    pointer-events: none; 
}

/* Podpis pod ikoną z Tails OS */
.icon-label {
    color: #ffffff;
    font-size: 12px;
    margin-top: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-family: "Cantarell", sans-serif;
}

/*====================================================================
                            POCZĄTKOWE POŁOŻENIE IKON
======================================================================*/
.files-icon {
    top: 25px;
    left: 25px;
}

.terminal-icon {
    top: 25px;
    right: 25px;
}

.documents-icon {
    top: 100px;
    left: 25px;
}

.photos-icon {
    top: 175px;
    left: 25px;
}

.readme-icon {
    bottom: 25px;
    left: 25px;
}

.checkmate-icon {
    top: 25px;
    left: 125px;
}

.mail-client-icon {
    top: 255px;
    left: 25px;
}

.browser-icon {
    top: 350px;
    left: 25px;
}
/*====================================================================
                            STYLE TERMINALA
======================================================================*/

/* UKRYTE OKNO TERMINALA */
.window {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 600px;
    height: 700px;
    background-color: #1e1e1e; 
    border: 1px solid #3c3c3c;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    

    display: none; 
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
}

/* Górny pasek okna terminala */
.window-header {
    background-color: #2d2d2d; 
    color: #dfdfdf;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    font-family: "Cantarell", sans-serif;
    border-bottom: 1px solid #1a1a1a;

    cursor: move; 
    touch-action: none;

    min-height: 30px !important;   /* Blokada kurczenia się na wysokość */
    flex-shrink: 0 !important;
}

/* Przycisk zamykania okna */
.window-close-btn {
    background: none;
    border: none;
    color: #dfdfdf;
    font-size: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.window-close-btn:hover {
    background-color: #e81123; 
    color: white;
}

/* Zawartość tekstowa terminala */
.window-content {
    color: #ffffff;
    font-family: "Courier New", Courier, monospace; 
    font-size: 14px;
    padding: 12px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; 
    word-break: break-all;
    line-height: 1.5;
}

/* Animacja migającego kursora */
.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Styl całej linii wpisywania komendy */
.terminal-input-line {
    display: flex;
    align-items: center;
    width: 100%;
}
.terminal-prompt {
    color: #4ade80; 
    margin-right: 8px;
    white-space: nowrap;
    font-family: "Courier New", Courier, monospace;
}


#terminal-input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-family: "Courier New", Courier, monospace !important;
    font-size: 14px;
    outline: none !important;
    flex-grow: 1;
    padding: 0;
}

#terminal-body, 
#terminal-history {
    word-break: normal !important;        
    overflow-wrap: break-word !important;
}

/*====================================================================
                    STYLE DO OKNA FILES MANAGER
======================================================================*/

/* Styl dla zawartości okna z błędem */
.files-error-content {
    background-color: #f6f6f6 !important; 
    color: #2c3e50 !important;
    font-family: "Cantarell", sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-box {
    max-width: 90%;
    padding: 20px;
}

.error-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.error-box h2 {
    font-size: 20px;
    color: #c0392b;
    margin-bottom: 10px;
}

.error-box p {
    font-size: 14px;
    line-height: 1.4;
    color: #34495e;
}

.error-sub {
    margin-top: 15px;
    font-size: 12px !important;
    color: #7f8c8d !important;
    font-style: italic;
}

/*====================================================================
                    STYLE DO OKNA DOKUMENTY
======================================================================*/
/* Wnętrze folderu Dokumenty */
.docs-folder-content {
    background-color: #ffffff !important; 
    color: #2c3e50 !important;
    font-family: "Cantarell", sans-serif !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 20px; 
    padding: 20px !important;
    align-content: flex-start;
}

/* Układ ikon obok siebie w folderze Dokumenty */
.docs-folder-content {
    background-color: #ffffff !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: wrap !important;     
    gap: 25px;                     
    align-content: flex-start;
}

/* Styl pojedynczego pliku w folderze */
.doc-file-item {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.doc-file-item:hover {
    background-color: #e2e8f0;
}

/* Wygląd miniaturek ze zrzutu ekranu */
.file-thumbnail {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    margin-bottom: 6px;
}

.file-name-label {
    font-size: 12px;
    color: #1f2937;
    word-break: break-all;
    line-height: 1.3;
    font-family: "Cantarell", sans-serif;
}

/* --- STYLIZACJA OKNA PRZEGLĄDARKI ZDJĘĆ --- */
.viewer-content {
    background-color: #111111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
}

#full-screen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/*====================================================================
                    STYLE DO OKNA PHOTOS
======================================================================*/


/*====================================================================
                    STYLE DO OKNA PLIKU TEKSTOWEGO
======================================================================*/

/* Stylizacja wnętrza notatnika */
.notepad-content {
    background-color: #ffffff !important; 
    color: #1a1a1a !important;            
    font-family: "Courier New", Courier, monospace !important; 
    font-size: 13px !important;
    padding: 15px !important;
    line-height: 1.4 !important;
}

/* Wyróżnienie nagłówka w pliku tekstowym */
.notepad-header {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

/*====================================================================
                    STYLE DO OKNA KLIENTA POCZTY
======================================================================*/

/* Układ klienta pocztowego */
.thunderbird-layout {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-family: "Cantarell", sans-serif !important;
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    height: 100%;
}

/* Lewy panel (Nawigacja) */
.mail-sidebar {
    width: 240px !important;       
    min-width: 240px !important;   
    max-width: 240px !important;  
    background-color: #f5f6f7;
    border-right: 1px solid #d1d5db;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: bold;
    color: #6b7280;
    padding: 10px 12px 4px 12px;
    background-color: #eaecef;
}

/* Wspólna lista dla maili i kontaktów */
.mail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Elementy listy */
.contact-item, .email-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #edf0f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    transition: background 0.15s;
}

.contact-item:hover, .email-item:hover {
    background-color: #e5e7eb;
}

/* Styl zaznaczonego elementu */
.mail-active-item {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.mail-subj {
    font-weight: 500;
}

/* Prawy panel (Podgląd tekstu) */
.mail-preview-panel {
    flex-grow: 1 !important;       
    width: calc(100% - 240px) !important; 
    padding: 20px;
    overflow-y: auto;            
    line-height: 1.5;

    word-break: normal !important;      
    overflow-wrap: break-word !important;
}

/* Wygląd początkowego komunikatu */
.mail-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
}

/* Formatowanie wyświetlanego maila/opisu */
.preview-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    color: #111827;
}

.preview-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
}

.preview-body {
    color: #374151;
}

/*====================================================================
                    OKNO PRZEGLĄDARKI
======================================================================*/

/* Pasek adresu u góry okna */
.browser-address-bar {
    background-color: #f0f1f2;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d1d5db;
}

#browser-url {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    width: 100%;
    color: #555555;
    outline: none;
    margin-left: 8px;
}

/* Zawartość okna przeglądarki */
.browser-content {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-family: "Cantarell", sans-serif !important;
    padding: 0 !important;
    overflow-y: auto;

    white-space: normal !important;     
    word-break: normal !important;      
    overflow-wrap: break-word !important;
}

.browser-page {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styl strony startowej DDG */
.ddg-logo { font-size: 64px; margin-bottom: 10px; }
.ddg-title { font-size: 28px; font-weight: bold; color: #222222; padding-right: 30px; text-align: center; }
.browser-page h2 {padding-right: 40px; text-align: center;}
.ddg-subtitle { color: #666666; font-size: 14px; margin-bottom: 25px; padding-right: 30px; text-align: center;}

.ddg-search-box {
    display: flex;
    width: 80%;
    max-width: 500px;
    border: 1px solid #cccccc;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);

    margin-right: 40px;
}

#ddg-input {
    flex-grow: 1;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
}

#ddg-submit-btn {
    border: none;
    background-color: #ffffff;
    padding: 0 16px;
    cursor: pointer;
    font-size: 16px;
}

.browser-page img {
    width: 100px;
    height: auto;
    margin-right: 40px;
}

#ddg-submit-btn:hover { background-color: #f5f5f5; }

/*ukryta wskazówka do wyszukiwarki */
.hidden-tip {
    margin-right: 40px;
    color: #FFFFFF;
    font-size: 6pt;
}


/* Styl wyników wyszukiwania */
.results-header {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    background-color: #fafafa;
}

.results-logo-mini { font-size: 24px; margin-right: 15px; }
.results-query-text { font-size: 16px; font-weight: bold; color: #222222; }

.results-container {
    width: 100%;
    max-width: 650px;
    padding: 20px;
    align-self: flex-start;
    box-sizing: border-box; 
}
.results-stats { font-size: 12px; color: #777777; margin-bottom: 20px; }

.search-result-item { margin-bottom: 25px; }
.result-url { font-size: 12px; color: #006621; text-decoration: none; display: block; margin-bottom: 2px; }
.result-title { font-size: 18px; color: #1a0dab; cursor: pointer; font-weight: normal; margin-bottom: 4px; }
.result-title:hover { text-decoration: underline; }
.result-snippet { 
    font-size: 13px; 
    color: #545454; 
    line-height: 1.4;
    word-break: normal !important;      
    overflow-wrap: break-word !important; 

    white-space: normal !important;     
    word-break: normal !important;      
    overflow-wrap: break-word !important;
}

/* ----------------------------------------------------------------------------------
                            WERSJA MOBILNA 
-------------------------------------------------------------------------------------*/
    
@media (max-width: 600px) {   

 /* DOSTOSOWANIE GŁÓWNEGO PASKA SYSTEM-TRAY */
    .system-tray {
        height: auto !important;          
        min-height: 28px !important;
        flex-wrap: wrap !important;       
        padding-top: 4px !important;      
        padding-bottom: 6px !important;
        justify-content: space-between !important; 
    }

    /* REGUŁY DLA 1 WIERSZA: MENU ORAZ DATA */
    .system-tray .system-tray-option:nth-child(1),
    .system-tray .system-tray-option:nth-child(2)  {
        order: 1 !important;              
    }

    .data {
        width: auto !important;           
        max-width: 50vw !important;       
        flex-grow: 1 !important;          
        justify-content: flex-end !important; 
        height: 28px !important;          
        order: 2 !important;           
    }

    /* REGUŁY DLA 2 WIERSZA: WSZYSTKIE PRAWE IKONKI */
    .icon-right-wide,
    .icon-right-tight {
        order: 3 !important;              
        height: 28px !important;
        flex-grow: 1 !important;          
        justify-content: center !important; 
        
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 6px !important;      
    }

    .right-icons {
        margin-left: 0 !important; 
    }

.desktop {
       
        background-image: url('IMG/this_system_is_rootten_mobile2.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 28px) !important;
        overflow: hidden !important;
    }

    /* poprawki do wyświetlania paseka task-bar */
    html, body, .main-box {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important; 
    }

    .system-tray {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* MOBILNA SZEROKOŚĆ I CENTRALNA POZYCJA STARTOWA OKIEN */
    .window {
        
        width: 90% !important;        
        max-width: 90% !important;   
        height: 70% !important;       
        
        
        left: 5% !important;          
        top: 45px !important;         
        
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.6);
        box-sizing: border-box !important;
    }

    .window-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Dopasowanie Thunderbird pod mobile */
    .mail-sidebar {
    width: 110px !important;       
    min-width: 90px !important;   
    max-width: 110px !important;  
}
    
    /* Dopasowanie szerokości dużego podglądu zdjęć/dokumentów */
    #full-screen-image {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

/*====================================================================
                            POCZĄTKOWE POŁOŻENIE IKON - WERSJA MOBILNA
======================================================================*/
.files-icon {
    top: 50px;
    left: 25px;
}

.terminal-icon {
    top: 50px;
    right: 25px;
}

.documents-icon {
    top: 125px;
    left: 25px;
}

.photos-icon {
    top: 200px;
    left: 25px;
}

 /* Nowe położenie ikony readme */
    .readme-icon {
    top: 475px;
    left: 25px;
}

.checkmate-icon {
    top: 50px;
    left: 125px;
}

.mail-client-icon {
    top: 280px;
    left: 25px;
}

.browser-icon {
    top: 375px;
    left: 25px;
}

}