﻿.tool-shell{
  display:grid;
  gap:20px;
}
.tool-dropzone{
  position:relative;
  border:1px dashed rgba(129,120,255,.45);
  border-radius:20px;
  padding:42px 24px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 0%,rgba(99,91,255,.14),transparent 55%),
    rgba(18,26,43,.72);
  transition:.25s ease;
  cursor:pointer;
}
.tool-dropzone:hover,
.tool-dropzone.dragover{
  border-color:#8178ff;
  background:
    radial-gradient(circle at 50% 0%,rgba(99,91,255,.22),transparent 60%),
    rgba(18,26,43,.9);
  transform:translateY(-1px);
}
.tool-drop-icon{
  width:64px;
  height:64px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:rgba(99,91,255,.14);
  border:1px solid rgba(129,120,255,.28);
  font-size:28px;
}
.tool-dropzone h2{
  margin:0 0 8px;
  font-size:21px;
}
.tool-dropzone p{
  margin:0 0 20px;
  opacity:.7;
}
.tool-btn{
  appearance:none;
  border:1px solid rgba(129,120,255,.35);
  border-radius:12px;
  padding:11px 18px;
  background:linear-gradient(135deg,#635bff,#8178ff);
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.tool-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
}
.tool-btn.secondary{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.1);
}
.tool-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.tool-file-info{
  display:none;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.tool-info-card{
  padding:15px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
}
.tool-info-label{
  display:block;
  font-size:12px;
  opacity:.55;
  margin-bottom:5px;
}
.tool-info-value{
  display:block;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tool-editor{
  display:none;
  gap:18px;
}
.tool-video-wrap{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#05070d;
  border:1px solid rgba(255,255,255,.08);
}
.tool-video-wrap video{
  display:block;
  width:100%;
  max-height:430px;
  background:#05070d;
}
.tool-wave-panel{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.08);
}
.tool-wave-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.tool-wave-header strong{
  font-size:14px;
}
.tool-time{
  font-variant-numeric:tabular-nums;
  opacity:.7;
  font-size:13px;
}
.tool-wave-wrap{
  position:relative;
  height:150px;
  overflow:hidden;
  border-radius:12px;
  background:#080b14;
  border:1px solid rgba(255,255,255,.08);
}
.tool-wave-wrap canvas{
  display:block;
  width:100%;
  height:100%;
}
.tool-playhead{
  position:absolute;
  top:0;
  bottom:0;
  width:2px;
  background:#fff;
  box-shadow:0 0 12px rgba(255,255,255,.8);
  pointer-events:none;
  transform:translateX(-1px);
}
.tool-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.tool-control{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.08);
}
.tool-control.full{
  grid-column:1/-1;
}
.tool-control label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
  font-size:13px;
  font-weight:700;
}
.tool-control input[type="range"]{
  width:100%;
  accent-color:#8178ff;
}
.tool-inputs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.tool-input{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  padding:10px 12px;
  background:rgba(0,0,0,.2);
  color:inherit;
  font:inherit;
  outline:none;
}
.tool-input:focus{
  border-color:rgba(129,120,255,.7);
  box-shadow:0 0 0 3px rgba(99,91,255,.1);
}
.tool-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.tool-export{
  display:block;
  padding:20px;
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 0%,rgba(99,91,255,.12),transparent 45%),
    rgba(255,255,255,.025);
  border:1px solid rgba(129,120,255,.18);
}
.tool-export-grid{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:end;
}
.tool-select{
  width:100%;
  box-sizing:border-box;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:#101525;
  color:inherit;
  font:inherit;
}
.tool-progress{
  display:none;
  gap:8px;
}
.tool-progress-track{
  height:8px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.07);
}
.tool-progress-bar{
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#635bff,#a096ff);
  transition:width .15s ease;
}
.tool-progress-text{
  font-size:12px;
  opacity:.65;
}
.tool-status{
  min-height:20px;
  font-size:13px;
  opacity:.7;
}
.tool-status.error{
  color:#ff8d9d;
  opacity:1;
}
.tool-status.success{
  color:#8df0bd;
  opacity:1;
}
@media (max-width:800px){
  .tool-file-info{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tool-controls{
    grid-template-columns:1fr;
  }
  .tool-control.full{
    grid-column:auto;
  }
  .tool-export-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:520px){
  .tool-dropzone{
    padding:32px 16px;
  }
  .tool-file-info{
    grid-template-columns:1fr;
  }
  .tool-inputs{
    grid-template-columns:1fr;
  }
  .tool-actions{
    flex-direction:column;
  }
  .tool-btn{
    width:100%;
  }
  .tool-wave-wrap{
    height:120px;
  }
}

