:root{
  --bg-dark: #0f172a; 
  --bg-light: #1e293b; 
  --accent: #38bdf8;   
  --text-main: #e2e8f0; 
  --text-muted: #94a3b8;
  --border-color: #334155;
  --radius:10px;
  --max-width:900px;
  --gap:16px;
}

/*sayfa*/
body{
  background: radial-gradient(ellipse at top, var(--bg-light), var(--bg-dark));
  background-attachment: fixed;
  color:var(--text-main);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  padding:24px;
  display:flex;
  justify-content:center;
}
.main{
  width:100%;
  max-width:var(--max-width);
}


.card{
  background:var(--bg-light);
  border-radius:var(--radius);
  border: 1px solid var(--border-color);
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
  padding:18px;
  margin-bottom:var(--gap);
  animation: fadeIn 0.5s ease-in-out;
}


h1{font-size:20px;margin:0 0 8px 0}
h2{font-size:16px;margin:0 0 8px 0;color:var(--text-muted)}


.form-row{display:flex;gap:10px;align-items:center}
label{font-size:14px;color:var(--text-muted); margin-bottom: 4px; display: block;}
input[type="text"], input[type="password"], input[type="file"], select, textarea{
  width:100%;padding:10px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-dark);font-size:14px; color: var(--text-main);
  box-sizing: border-box;
}
button{
  background:var(--accent);color:var(--bg-dark);padding:10px 14px;border-radius:8px;border:none;cursor:pointer;font-weight:600;
  transition: all 0.2s ease-in-out;
}
button:hover{
  box-shadow: 0 0 15px 0px var(--accent);
  transform: translateY(-2px);
}
button.secondary{background:rgba(56, 189, 248, 0.1);color:var(--accent);border:1px solid rgba(56, 189, 248, 0.2)}


.clip-item{
  display:flex;
  flex-direction:column;
  gap:15px;
  padding:15px;
  border-radius:12px;
  border:1px solid var(--border-color);
  background:rgba(0,0,0,0.1);
  margin-bottom:15px;
}
.clip-preview{
  width:100%;
  display:flex;
  justify-content:center;
  background:var(--bg-dark); 
  padding:0;
  border-radius:8px;
  overflow: hidden; 
}
.clip-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
}
.clip-title{font-weight:600}
.clip-actions{display:flex;gap:8px}
.clip-small{font-size:12px;color:var(--text-muted)}

a{color: var(--accent); text-decoration: none;}
a:hover{text-decoration: underline;}
a.secondary{background:rgba(56, 189, 248, 0.1);color:var(--accent);border:1px solid rgba(56, 189, 248, 0.2); padding: 6px 10px; border-radius: 8px; font-size: 14px;}
a.secondary:hover{text-decoration: none; background:rgba(56, 189, 248, 0.2);}


.table-container {
  overflow-x: auto; 
}
.clips-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.clips-table th, .clips-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.clips-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}
.clips-table tbody tr:hover {
  background-color: rgba(255,255,255,0.03);
}
.table-preview {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: middle;
}


@media (max-width:600px){
  body{padding:12px}
  .form-row{flex-direction:column;align-items:stretch}
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to { opacity: 1; transform: translateY(0); }
}