* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #000;
  min-height: 100vh;
  padding: 20px;
  color: #fff;
  position: relative;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #000;
  overflow: hidden;
}

.header {
  background: #000;
  color: #fff;
  padding: 40px 30px;
  text-align: center;
  border-bottom: 1px solid #000;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 2px;
}

.header h1 i {
  margin-right: 10px;
}

.header p {
  font-size: 1em;
  font-weight: 300;
  opacity: 0.8;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #000;
}

.tab {
  flex: 1;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: none;
  border-right: 1px solid #000;
  font-size: 1em;
  font-weight: 400;
  transition: all 0.2s;
  color: #000;
}

.tab:last-child {
  border-right: none;
}

.tab:hover {
  background: #f5f5f5;
}

.tab.active {
  background: #000;
  color: #fff;
}

.content {
  padding: 40px;
  background: #fff;
  color: #000;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.upload-zone {
  border: 2px dashed #000;
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 30px;
}

.upload-zone:hover {
  background: #f5f5f5;
}

.upload-zone.dragover {
  background: #000;
  color: #fff;
}

.upload-zone.dragover h3,
.upload-zone.dragover p {
  color: #fff;
}

.upload-zone i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #000;
}

.upload-zone.dragover i {
  color: #fff;
}

.upload-zone h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #000;
  font-weight: 400;
}

.upload-zone p {
  color: #666;
  font-size: 0.95em;
}

.file-input {
  display: none;
}

.file-list {
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f5f5f5;
  border: 1px solid #000;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.file-list-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f5f5f5;
  border: 1px solid #000;
  gap: 12px;
}

.file-info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.file-info i {
  color: #666;
  font-size: 0.9em;
}

.file-name {
  flex: 1;
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 0.85em;
  color: #666;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.file-item .remove {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.2s;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-item .remove:hover {
  background: #fff;
  color: #000;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  color: #000;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #000;
  background: #fff;
  font-size: 1em;
  transition: all 0.2s;
  color: #000;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: #f5f5f5;
}

.password-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 0.85em;
  padding: 5px 10px;
}

.password-toggle:hover {
  color: #000;
}

.btn {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  font-size: 1em;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.btn:active {
  background: #000;
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner-container {
  display: none;
  margin: 20px 0;
  text-align: center;
  align-items: center;
  gap: 10px;
}

.spinner-container.active {
  display: flex;
  justify-content: center;
}

.spinner-container i {
  font-size: 24px;
  color: #000;
}

.spinner-container span {
  font-size: 16px;
  color: #000;
}

body.dark-mode .spinner-container i,
body.dark-mode .spinner-container span {
  color: #000;
}

body.light-mode .spinner-container i,
body.light-mode .spinner-container span {
  color: #fff;
}

.error {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 15px;
  margin: 20px 0;
  display: none;
}

.error.active {
  display: block;
}

.success {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 15px;
  margin: 20px 0;
  display: none;
}

.success.active {
  display: block;
}

.privacy-notice {
  background: #f5f5f5;
  border: 1px solid #000;
  padding: 20px;
  margin-top: 30px;
  font-size: 0.85em;
  color: #000;
  text-align: center;
}

.privacy-notice strong {
  color: #000;
  font-weight: 400;
}

.privacy-notice i {
  margin-right: 5px;
}

.compress-level-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75em;
  color: #666;
  margin-top: 4px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: #f5f5f5;
  border: 1px solid #000;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #000;
  cursor: pointer;
  border: 1px solid #000;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #000;
  cursor: pointer;
  border: 1px solid #000;
}

body.light-mode input[type="range"] {
  background: #e8e8e8;
  border: 1px solid #ccc;
}

body.light-mode input[type="range"]::-webkit-slider-thumb,
body.light-mode input[type="range"]::-moz-range-thumb {
  background: #666;
  border: 1px solid #666;
}

/* Dark mode toggle button */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: #fff;
  color: #000;
}

/* Light mode styles */
body.light-mode {
  background: #fff;
  color: #000;
}

body.light-mode .container {
  background: #f5f5f5;
  border: 1px solid #ccc;
}

body.light-mode .header {
  background: #f5f5f5;
  color: #000;
  border-bottom: 1px solid #ccc;
}

body.light-mode .tabs {
  border-bottom: 1px solid #ccc;
}

body.light-mode .tab {
  background: #f5f5f5;
  border-right: 1px solid #ccc;
  color: #000;
}

body.light-mode .tab:hover {
  background: #e8e8e8;
}

body.light-mode .tab.active {
  background: #fff;
  color: #000;
  border-bottom: 2px solid #000;
}

body.light-mode .content {
  background: #fff;
  color: #000;
}

body.light-mode .upload-zone {
  border: 2px dashed #ccc;
  background: #fff;
}

body.light-mode .upload-zone:hover {
  background: #f5f5f5;
}

body.light-mode .upload-zone.dragover {
  background: #000;
  color: #fff;
}

body.light-mode .upload-zone.dragover h3,
body.light-mode .upload-zone.dragover p {
  color: #fff;
}

body.light-mode .upload-zone i {
  color: #666;
}

body.light-mode .upload-zone.dragover i {
  color: #fff;
}

body.light-mode .file-list-header {
  background: #fff;
  border: 1px solid #ccc;
}

body.light-mode .file-item {
  background: #fff;
  border: 1px solid #ccc;
}

body.light-mode .file-item .remove {
  background: #666;
  color: #fff;
  border: 1px solid #666;
}

body.light-mode .file-item .remove:hover {
  background: #000;
  color: #fff;
}

body.light-mode .form-group input,
body.light-mode .form-group select {
  border: 1px solid #ccc;
  background: #fff;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus {
  background: #f5f5f5;
  border-color: #000;
}

body.light-mode .btn {
  background: #666;
  color: #fff;
  border: 1px solid #666;
}

body.light-mode .btn:hover {
  background: #000;
  color: #fff;
}


body.light-mode .error {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
}

body.light-mode .success {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

body.light-mode .privacy-notice {
  background: #fff;
  border: 1px solid #ccc;
}

body.light-mode .theme-toggle {
  background: #666;
  color: #fff;
  border: 1px solid #666;
}

body.light-mode .theme-toggle:hover {
  background: #000;
  color: #fff;
}

