/* Importing the Lato font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

body {
    background-color: #1a1a1a;
    color: #888;
    font-family: 'Lato', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.3;
    padding: 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

 h1 {   /* cím */
        font-size: 1.5em;  letter-spacing: 0.1em;   
        text-align: center; margin: 20px 0; font-weight:normal;   
        color: #92af7f; /* zöld */  }


label {
    color: #08b5b5; /* TÜRKIZ */
    font-size: 16px;
    font-weight: normal;
    padding-right: 14px;
    display: block;
    margin-bottom: 5px;
}



       

form {
    margin-bottom: 20px;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 25px;
}

select {
    padding: 10px;
    font-size: 16px;
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    color: #08b5b5; /* TÜRKIZ */
}

select:focus {
    outline: 2px solid #007bff;
}

.file-content, .results, .admin-editor {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.file-content h3, .results h3, .admin-editor h3 {
    color: #08b5b5; /* TÜRKIZ */
    font-size: 16px;
    font-weight: normal;
    padding: 0;
    margin: 0 0 10px 0;
}

input[type="number"],
input[type="text"] {
    padding: 10px;
    font-size: 14px;
    background-color: #333;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 5px;
    margin-right: 5px;
    width: 150px;
}

/* Styles for admin page */
form#file-select-form {
    background-color: transparent;
    padding: 0;
}

form#file-select-form select {
    min-width: 300px;
}

.admin-editor form {
    background-color: transparent;
    padding: 0;
    display: block;
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 10px;
    font-size: 14px;
    background-color: #888; /* Drapp */
    color: #000000; /* Fekete */    
    border-radius: 5px;
    box-sizing: border-box; /* To include padding in width */
    font-family: 'Lato', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

input[type="submit"] {
    background-color: #08b5b5;
    color: #1a1a1a;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #018c81;
}

/* Admin ikon a jobb felső sarokban */
a.admin-button {
    position: fixed; /* Rögzíti a pozíciót a görgetés ellenére is */
    top: 20px;       /* Távolság a tetejétől */
    right: 20px;      /* Távolság a jobb szélétől */
    z-index: 1000;   /* Biztosítja, hogy más elemek felett jelenjen meg */
    background: transparent; /* Nincs háttér */
}

a.admin-button img {
    width: 20px; /* picike fogaskerék */
    height: auto;
    display: block;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
    /* Kép színezése türkizre (#01b3a6) egy CSS filter segítségével */
    filter: invert(48%) sepia(79%) saturate(2548%) hue-rotate(149deg) brightness(94%) contrast(101%);
}

a.admin-button:hover img {
    transform: scale(1.10.vissza-link {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        background-color: #007bff;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: 500;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: background-color 0.2s;
    }
    
    .vissza-link:hover {
        background-color: #0056b3;
    }
    ); /* Enyhe nagyítás */
    /* Kicsit világosabb lesz, ha fölé viszed az egeret */
    filter: invert(48%) sepia(79%) saturate(2548%) hue-rotate(149deg) brightness(115%) contrast(101%);
}

.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    color: white;
}
.message.success { background-color: #28a745; }
.message.error { background-color: #dc3545; }

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Lato', Roboto, Helvetica, Arial, sans-serif;
    margin-top: 0;
    padding-top: 0;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

.collapsible-header::before {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-out;
    font-size: 12px;
}

.collapsible-header.collapsed::before {
    transform: translateY(-50%) rotate(-90deg);
}

.collapsible-content.collapsed {
    display: none;
}