body {
    font-family: system-ui, sans-serif;
    margin: auto;
    line-height: 1.6;
    background: rgb(231,233,234);
    color: #222;
}

h1 {color: rgb(64,224,208);}

button {
    padding: 0.5rem 1rem;
    border: none;
    background: rgb(64,224,208);
    color: #222;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: rgb(50, 200, 185);
}

/* Kifejezetten a zöld (siker) gombokhoz */
.btn-success {
    background: rgb(80,200,120);
    color: #222;
    font-weight: bold;
}
.btn-success:hover {
    background: rgb(65, 180, 100);
}

.box {
    width: 300px;
    height: 300px;
    background-color: rgb(64,224,208);
    padding: 10px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: rgb(80,200,120); /* Hoverre zöldre vált */
}

.box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    width: 100%;
    flex-wrap: wrap;
    font-family: system-ui, sans-serif;
    border-radius: 10px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: none;
}

.creative-header {
    width: 100%;
    height: 100px;
    background-color: #101010;
    color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    justify-content: space-between;
}

.main-nav li {
    height: 100%;
    float: left;
    padding: 0px 20px;
    display: table;
    align-items: center;
    list-style: none;
    color: white;
}

.main-nav li a { color: white; }

#logo { padding: 0px 50px; font-size: 32px; }
.gallery-item { max-width: 500px; max-height: 500px; }

.open-modal {
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

.modal-background {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-background.aktiv { display: flex; }

.modal-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 70%;
  height: 70%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Chat widget ===== */
#chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; font-family: system-ui, sans-serif; }

#chat-toggle { 
    width: 60px; height: 60px; border-radius: 50%; font-size: 28px; 
    background: rgb(64,224,208); color: #222; border: none; cursor: pointer; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.2s; 
}
#chat-toggle:hover { transform: scale(1.1); background: rgb(80,200,120); }

#chat-window { 
    position: absolute; bottom: 80px; right: 0; width: 350px; height: 500px; 
    background: white; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); 
    display: flex; flex-direction: column; overflow: hidden; 
    border: 1px solid rgb(64,224,208);
}

#chat-window.hidden { display: none; }

#chat-header { 
    background: #101010; color: white; padding: 12px 16px; 
    display: flex; justify-content: space-between; align-items: center; font-weight: bold; 
}

#chat-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 0; line-height: 1; }

#chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f5f5f5; }

.chat-message { padding: 8px 12px; border-radius: 10px; max-width: 80%; word-wrap: break-word; font-size: 14px; line-height: 1.4; }

.chat-message.user { align-self: flex-end; background: rgb(64,224,208); color: #222; }

.chat-message.bot { align-self: flex-start; background: white; color: #222; border: 1px solid #ddd; }

#chat-input-area { display: flex; padding: 8px; background: white; border-top: 1px solid #ddd; }

#chat-input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }

#chat-input:focus { border-color: rgb(64,224,208); }

#chat-send { 
    margin-left: 8px; padding: 8px 16px; 
    background: rgb(80,200,120); /* Zöld Küld gomb */
    color: #222; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; 
}
#chat-send:hover { background: rgb(65, 180, 100); }
#chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Kurzus kártyák (Főoldali modális ablakokhoz) ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.course-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: rgb(80,200,120); /* Zöld keret hoverre */
}

.course-card h3 {
    color: rgb(64,224,208);
    margin-top: 0;
    transition: color 0.2s;
}
.course-card:hover h3 {
    color: rgb(80,200,120); /* Zöld cím hoverre */
}

/* ===== Tananyagok (Course oldal) ===== */
.material-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    max-width: 100%;
}

.material-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.material-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: rgb(64,224,208);
}

.material-header {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.material-header:hover {
    background: rgb(240, 250, 250);
}

.material-card[open] .material-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid #eee;
    background: #eefcfc; /* Halvány türkiz, ha nyitva van */
}

.material-card[open] .material-icon {
    transform: rotate(180deg);
}

.material-index {
    color: rgb(64,224,208);
    font-size: 1.1em;
    min-width: 25px;
}

.material-type { 
    color: #666; 
    font-size: 0.85em; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.material-title { 
    flex-grow: 1; 
    color: #222; 
}

.material-icon { 
    font-size: 0.8em; 
    color: #888; 
    transition: transform 0.3s; 
}

.material-body {
    padding: 20px;
    border-top: 1px solid #eee;
    background: rgb(231,233,234);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Teljesített szöveg áthúzása */
.completed-text {
    color: #666 !important;
    text-decoration: line-through;
}

/* ===== Egyedi Checkbox (Biztonsági bővítmények ellen) ===== */
.checkbox-container {
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-container label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95em;
    line-height: 1.4;
}

/* A valódi checkbox elrejtése, de működőképes marad */
.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* A látható négyzet */
.custom-checkbox {
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    background: white;
    transition: all 0.2s;
    position: relative;
}

/* Ha be van pipálva, zöld lesz a háttér */
.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #28a745;
    border-color: #28a745;
}

/* A pipa kirajzolása */
.checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}