:root {
  --kodak-red: #c0392b;
  --kodak-yellow: #f1c40f;
  --kodak-dark-yellow: #ffb700;
  --kodak-dark-bg: #2c3e50;
  --kodak-light-bg: #ecf0f1;
  --kodak-muted-dark: #34495e;
  --gray: #d3d3d3;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--kodak-light-bg);
  line-height: 1.6;
}

header {
  background-color: var(--kodak-dark-yellow);
  padding: .5em 6em;
  display: flex;
  align-items: center;
}

h1 {
  padding: 0 .5em;
  margin: 0;
  font-size: 1.4em;
  font-weight: bold;
}

#gotopics-container {
  width: 100%;
  padding: 2em;
  margin: 0 auto;
  box-sizing: border-box;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}


#export-csv {
  float: right;
}

.btn-logout {
  margin-left: auto;
  display: inline-block;
}

#manage-bar .d-flex {
  gap: 12px;
  /* Adds consistent spacing between elements */
}

#manage-bar {
  margin: 0 auto;
  max-width: 80%;
}

.btn-logout {
  background-color: #e57373;
  border-color: #e57373;
  color: white;
}

.btn-logout:hover {
  background-color: #ef5350;
  border-color: #ef5350;
  /* Darken the logout on hover */
}


#manage-bar button {
  white-space: nowrap;
  /* Prevents text wrapping */
}

#import-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  align-items: center;
}

#import-container input[type="file"] {
  flex: 1;
  min-width: 150px;
  max-width: 300px;
}

#import-container button {
  flex: 0;
  white-space: nowrap;
}


#import-container label {
  font-weight: bold;
}

table {
  font-size: 1rem;
  border: 4px solid;
}

th,
td {
  padding: 10px;
  white-space: normal;
  border: 1px solid #ddd;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

thead {
  color: white;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

tbody tr:hover {
  background-color: #eaf2f8;
}

.pause-status div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pause-status div * {
  white-space: normal;
  flex-wrap: wrap;
}

.pause-status.paused {
  background-color: var(--gray);
  color: var(--kodak-muted-dark);
}

.pause-status.active {
  color: var(--kodak-dark-bg);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
  margin-right: 12px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 21.5px;
  width: 21.5px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

@media (max-width: 500px) {
  .switch {
    width: 40px;
    height: 20px;
    gap: 2px;
    margin-right: 2px;
  }

  .pause-status div {
    width: 40px;
    height: 20px;
    gap: 2px;
    margin-right: 2px;
  }
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(30px);
  -ms-transform: translateX(30px);
  transform: translateX(30px);
}

.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  border-radius: 50%;
}

.action-btns div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btns .btn-primary {
  margin-right: 8px;
}

.url-wrap {
  max-width: 45ch;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
}