/* mozi-admin.css */

body {
  font-family: Arial, sans-serif;
  background-color: #f4f8fc;
  color: #333;
  padding: 20px 15px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

form#generator-form {
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: #2c3e50;
  margin-top: 0;
}

form {
  background: #ffffff;
  border: 1px solid #b5d0ec;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  box-sizing: border-box;
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  margin-bottom: 16px;
  border: 1px solid #b5d0ec;
  border-radius: 6px;
  background-color: #f9fbfd;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button {
  background-color: #3498db;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
  font-weight: bold;
}

button:hover {
  background-color: #2980b9;
}

a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #b5d0ec;
  padding: 10px;
  text-align: left;
  border-radius: 4px;
}

th {
  background-color: #e6f0fa;
}

/* Betűválasztó */
#betu-valaszto {
  margin-bottom: 1rem;
  user-select: none;
}

#betu-valaszto ul {
  display: flex;
  gap: 0.5rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

#betu-valaszto li {
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  background: #eee;
  color: #23527c;
  font-weight: 600;
  transition: background-color 0.25s ease;
}

#betu-valaszto li.active {
  background: #2a7ae2;
  color: white;
}

/* Filmcsoport */
.film-csoport {
  display: none;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;
  background: #fafafa;
}

.film-csoport.active {
  display: block;
}

.film-csoport ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.film-csoport li {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
}

.film-csoport li:hover {
  background-color: #d9eaff;
}

.film-csoport li input[type="radio"] {
  margin-right: 0.5rem;
}

/* Időablak panel */
#időablak-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f9fbfd;
  border: 1px solid #b5d0ec;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Dátumválasztó panel */
#datum-valaszto-panel {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.datum-item {
  flex: 1;
  min-width: 180px;
}

.datum-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #2c3e50;
}

/* Moziválasztó panel */
#mozivalaszto-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 6px;
  background: #fafafa;
}

/* Országválasztó a mozik panelen belül, középen, fölötte */
#orszag-valaszto-wrapper {
  max-width: 220px;
  margin: 0 auto 1rem auto;
  text-align: center;
}

#orszag-valaszto-wrapper label,
#orszag-valaszto-wrapper .orszag-label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #2c3e50;
  display: block;
}

#orszag-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #b5d0ec;
  background-color: #f9fbfd;
  cursor: pointer;
}

/* Wrapper, hogy a két lista vízszintesen legyen */
#mozi-listak-wrapper {
  display: flex;
  gap: 1rem;
  width: 100%;
}

/* Mozi listák egymás mellett */
#mozi-lista-container,
#kivalasztott-mozik-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  height: 350px;
}

#mozi-lista-wrapper-inner,
#kivalasztott-mozik-wrapper {
  flex-grow: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  border: 1px solid #bbb;
  background: white;
  border-radius: 6px;
  padding: 0.5rem;
  box-sizing: border-box;
}

#available-list,
#selected-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  height: 100%;
}

#available-list li,
#selected-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease;
}

#available-list li:hover,
#selected-list li:hover {
  background-color: #d9eaff;
}

#available-list li.selected,
#selected-list li.selected {
  background-color: #a9d0ff !important;
  border-color: #2a7ae2 !important;
  color: #07468f !important;
  font-weight: 700;
}

#available-list li span,
#selected-list li span {
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mozi-lista-gombok {
  margin-top: 0.5rem;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  text-align: center;
}

.mozi-lista-gombok button {
  width: 100%;
  max-width: 200px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #2a7ae2;
  border: none;
  color: white;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}

.mozi-lista-gombok button:hover {
  background-color: #145dbf;
}

/* Küldés gomb */
.submit-btn {
  margin-top: 1rem;
  width: 100%;
  max-width: 300px;
  background-color: #2980b9;
  border-radius: 6px;
  font-weight: bold;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.submit-btn:hover {
  background-color: #1e5ea8;
}

/* Menü konténer */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0;
    justify-content: center;
}

/* Menü gomb */
.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 2px solid #0077cc;
    border-radius: 12px;
    width: 240px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s;
}

.menu-button:hover {
    transform: scale(1.03);
    background: #f0f8ff;
    text-decoration: none;
    color: #005fa3;
}

/* Ikon */
.menu-button i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Menü leírás */
.menu-button p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #333;
    font-weight: normal;

}


.form > .menu {
  width: 100%;
  justify-content: flex-start;
  margin-top: 1.5rem;
}
.form-footer-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}


.pagination {
    display: flex;

    gap: 5px;
    margin: 24px 0 0 0;
    padding-left: 4px;
}
.pagination a {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid #d4e2f6;
    border-radius: 6px;
    background: #f9fbfd;
    color: #1682db;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    line-height: 32px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 1px 1.5px 0 #f1f1f1;
}
.pagination a:hover {
    background: #e7f0fa;
    color: #186bc6;
}
.pagination a.active {
    background: #1682db;
    color: #fff;
    border-color: #1682db;
    cursor: default;
    pointer-events: none;
}

.status-container { max-width: 480px; margin: 60px auto 0 auto; padding: 32px 28px; background: #fff; border-radius: 18px; box-shadow: 0 2px 18px rgba(0,0,0,0.07); text-align: center; }
.spinner { margin: 0 auto 20px auto; width: 38px; height: 38px; border: 4px solid #e4ecf4; border-top: 4px solid #33aaff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.status-title { font-size: 1.7em; margin-bottom: 22px; font-weight: 600; }
.status-list { text-align: left; margin: 0 auto 22px auto; display: inline-block ; max-height: 200px;overflow-y: auto; width: 100%;box-sizing: border-box; }
.status-item { margin-bottom: 8px; font-size: 1.04em; }
.progress-bar { width: 96%; height: 18px; background: #e4ecf4; border-radius: 8px; margin: 16px auto 24px auto; overflow: hidden; }
.progress-bar-fill { background: #33aaff; width: 100%; height: 100%; border-radius: 8px; }
.next-form { margin-top: 16px; }
.btn.btn-primary { padding: 10px 32px; background: #33aaff; border: none; border-radius: 6px; color: #fff; font-size: 1.13em; cursor: pointer; transition: background .2s; }
.btn.btn-primary:hover, .btn.btn-primary:focus { background: #1593e7; }
.status-error { color: #b11; font-weight: bold; margin-top: 16px; }

#generator-form .submit-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 30px;
  font-size: 1.1rem;
  cursor: pointer;
}
#generator-form button:disabled.submit-btn {
  cursor: not-allowed;
}

.kdm-status-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px #0001;
  padding: 32px 36px;
  min-height: 400px;
  height: 450px;
  display: flex;
  flex-direction: column;
}

.kdm-status-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.kdm-spinner {
  margin: 0 auto 20px auto;
  border: 5px solid #eee;
  border-top: 5px solid #6497b1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  display: block;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.kdm-status-list {
  flex: 1 1 auto;
  max-height: 520px;
  overflow-y: auto;
  margin-bottom: 18px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  background: #fafbfc;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
}

.kdm-status-item {
  padding-bottom: 3px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 4px;
}

.kdm-status-error {
  color: #c00 !important;
  font-weight: bold;
  margin-top: 12px;
  font-size: 16px;
}

.kdm-progress-bar {
  width: 100%;
  height: 16px;
  background: #eef1f6;
  border-radius: 8px;
  margin: 10px 0 5px 0;
  overflow: hidden;
}

.kdm-progress-bar-fill {
  background: linear-gradient(90deg, #6497b1 0%, #a6c1ee 100%);
  height: 100%;
  width: 0;
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(.4,2.6,.5,.8);
}

.kdm-next-form {
  text-align: center;
  margin-top: 18px;
}

.kdm-btn {
  background-color: #004385;
  display: block; 
  color: white;
  border: none;
  margin: 20px auto 0;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kdm-btn:disabled {
  background-color: #888888;
  cursor: not-allowed;
  color: #ccc;
}

.kdm-greenbox-form {
  border: 2px solid #4CAF50;
  background: #e6ffe6;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #2e7d32;
  border-radius: 6px;
  text-align: center;
}
.kdm-filmlista-label {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
    color: #333;
    letter-spacing: 0.04em;
}
