* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #202124;
  line-height: 1.6;
}

.container {
  /*min-height: 100vh;*/
  display: flex;
  flex-direction: column;
}

.header {
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #e8eaed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 400;
  color: #5f6368;
}

.logo svg {
  color: #1a73e8;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.converter-card {
  background: #fff;
  border-radius: 8px;
  padding: 48px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.title {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  font-size: 14px;
  color: #5f6368;
  text-align: center;
  margin-bottom: 32px;
}

.format-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.format-box {
  padding: 12px 24px;
  background: #fff;
  border: 2px solid #dadce0;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #202124;
}


.arrow-icon {
  color: #5f6368;
  display: flex;
  align-items: center;
}

.upload-area {
  border: 2px dashed #dadce0;
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}

.upload-area:hover {
  border-color: #1a73e8;
  background: #f1f6fc;
}

.upload-area.drag-over {
  border-color: #1a73e8;
  background: #e8f0fe;
}

.upload-icon {
  color: #5f6368;
  margin-bottom: 16px;
}

.upload-text {
  font-size: 16px;
  color: #202124;
  margin-bottom: 8px;
}

.upload-subtext {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 16px;
}

.browse-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.browse-btn:hover {
  background: #1765cc;
}

.browse-btn:active {
  background: #1557b0;
}

.settings {
  margin: 32px 0;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.setting-row label {
  font-size: 14px;
  color: #5f6368;
  min-width: 60px;
}

.quality-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

input[type="range"] {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #dadce0;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  cursor: pointer;
  border: none;
}

#qualityValue {
  font-size: 14px;
  color: #202124;
  font-weight: 500;
  min-width: 32px;
}

.error-message {
  background: #fce8e6;
  color: #d93025;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f4c7c3;
}

.files-list {
  margin: 24px 0;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #fafafa;
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #e8eaed;
}

.file-info {
  flex: 1;
}

.file-name {
  font-size: 14px;
  color: #202124;
  margin-bottom: 2px;
}

.file-size {
  font-size: 12px;
  color: #5f6368;
}

.file-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.file-status.ready {
  background: #e8f0fe;
  color: #1967d2;
}

.file-status.converting {
  background: #fef7e0;
  color: #f9ab00;
}

.file-status.done {
  background: #e6f4ea;
  color: #1e8e3e;
}

.file-status.error {
  background: #fce8e6;
  color: #d93025;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #5f6368;
}

.icon-btn:hover {
  background: #e8eaed;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e8eaed;
}

.actions-right {
  display: flex;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
}

.btn-primary:hover {
  background: #1765cc;
}

.btn-primary:active {
  background: #1557b0;
}

.btn-primary:disabled {
  background: #dadce0;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #1a73e8;
  border: 1px solid #dadce0;
}

.btn-secondary:hover {
  background: #f8f9fa;
}

.btn-secondary:active {
  background: #e8eaed;
}

@media (max-width: 768px) {
  .converter-card {
    padding: 24px;
  }

  .title {
    font-size: 24px;
  }

  .upload-area {
    padding: 32px 16px;
  }

  .setting-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .quality-control {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .format-selector {
    flex-direction: column;
  }
}

@media(max-width:576px){
    .format-box {
  padding: 3px 15px;
 
}
.format-selector{
    flex-direction: row;
}
.title{
    font-size:20px;
}
}
