/*
Theme Name: NCloud
Theme URI: #
Author: Custom Developer
Author URI: #
Description: A modern, flat UI WordPress theme for a video uploader page.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, flat, modern, single-page, uploader
Text Domain: nimbus-uploader
*/

/* ======================================
    Light Mode Variables (Default)
    ======================================
*/
:root{
  --bg:#f8fafc; /* light bg */
  --card:#ffffff;
  --text-dark:#1e293b; /* primary dark text */
  --muted:#64748b; /* medium grey muted */
  --accent:#4d7a7a; /* New accent color: teal/grey-green */
  --accent-600:#355555; /* New darker accent color */
  --success:#16a34a;
  --danger:#ef4444;
  --glass: rgba(77,122,122,0.15); /* Glass effect with new accent */
  --border-light: #e2e8f0; /* Light border color */
  --radius:14px;
  --max-width:1100px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light; /* Default to light */
}

/* ======================================
    Dark Mode Variables Overrides
    ======================================
*/
.dark-mode {
  --bg:#0f172a; /* Dark background */
  --card:#1e293b; /* Dark card background */
  --text-dark:#f1f5f9; /* Light text */
  --muted:#94a3b8; /* Muted light text */
  --accent-600:#66a3a3; /* Brighter accent for dark contrast */
  --glass: rgba(77,122,122,0.35); /* Darker glass effect */
  --border-light: #334155; /* Dark border color */

  color-scheme: dark; /* IMPORTANT: Changed to dark */
}

/* ======================================
    Base Styles
    ======================================
*/
/* [جميع أكواد CSS المتبقية من ملف HTML الأصلي تأتي هنا] */
/* أضفت هنا الأكواد لضمان عدم الحذف */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text-dark);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  align-items:center;
  padding:28px 20px;
  transition: background-color 0.3s ease; /* Smooth transition for theme change */
}
/* ... استكمال جميع الأنماط CSS إلى نهاية الملف الأصلي ... */
.header{
  width:100%;
  max-width:var(--max-width);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
.brand svg{width:40px;height:40px;flex:0 0 40px}
.brand-title .title{font-weight:700;font-size:18px}
.brand-title .tag{font-size:12px;color:var(--muted);display:block}
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--accent-600);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}
.theme-toggle:hover {
    background: var(--glass);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}
.nav{display:flex;gap:12px;align-items:center}
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  padding:8px 12px;
  border-radius:10px;
}
.nav a.primary{
  background:var(--glass);
  color:var(--accent-600);
  font-weight:600;
}
.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: 0;
  z-index: 10;
}
.nav-toggle .line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}
.nav-toggle.open .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use color-mix for light mode transparency */
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    padding-top: 100px;
    align-items: center;
    justify-content: flex-start;
    z-index: 5;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
  }
  .nav.open {
    display: flex;
    transform: translateX(0);
  }
  .nav a {
    font-size: 24px;
    padding: 20px;
    color: var(--text-dark);
  }
}
.container{
  width:100%;
  max-width:var(--max-width);
  background:transparent;
  display:flex;
  flex-direction:column;
  gap:22px;
  align-items:stretch;
}
.hero{
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  border-radius:var(--radius);
}
.hero .left{
  flex:1;
}
.hero h1{margin:0;font-size:28px;line-height:1.05}
.hero p{margin:8px 0 0;color:var(--muted)}
.hero .left h1 .highlight {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  font-weight: 700;
}
.card{
  display:flex;
  gap:20px;
  background:var(--card);
  border-radius:18px;
  padding:22px;
  align-items:center;
  justify-content:space-between;
  width:100%;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.illustration{
  width:180px;
  flex:0 0 180px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.uploader{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hint{font-size:13px;color:var(--muted)}
.controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.file-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg); /* Lighter contrast background */
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  height: 60px;
  border: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}
.file-meta > div:not(.button-group) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    width: calc(100% - 150px);
}
.file-meta .button-group {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}
.file-meta .icon-svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}
.file-meta .remote-url-input {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    padding: 0;
    box-shadow: none;
}
.file-meta .remote-url-input:focus {
    outline: none;
}
.file-meta .remote-url-input::placeholder {
    color: var(--muted);
    font-weight: 400;
}
.upload-mode-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.btn{
  -webkit-appearance:none;
  appearance:none;
  border:0;
  cursor:pointer;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  font-size:14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn.primary{
  background:var(--accent);
  color:white;
}
.btn.primary:hover{
  background:var(--accent-600);
}
.btn.ghost{
  background:transparent;
  color:var(--accent-600);
  border:1px solid var(--border-light);
}
.btn.ghost:hover{
  background:rgba(0,0,0,0.05);
}
.dark-mode .btn.ghost:hover{
  background:rgba(255,255,255,0.05);
}
.btn.warn{
  background:var(--danger);
  color:white;
}
.btn.small{padding:8px 10px;font-size:13px;border-radius:8px}
.btn.active-mode {
  background-color: var(--accent);
  color: white;
}
.output{
  display:flex;
  gap:10px;
  align-items:center;
}
.output input{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border-light);
  background:var(--bg);
  font-size:14px;
  color:var(--text-dark);
}
.server-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  width: 100%;
  flex-wrap: wrap;
}
.server-group label {
  font-size: 13px;
  color: var(--muted);
  min-width: 90px;
}
.server-group select,
.server-group input {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  font-size: 14px;
  flex: 1;
  min-width: 150px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.dark-mode .server-group select,
.dark-mode .server-group input {
    /* Use a lighter arrow for dark mode */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
}
.server-group input::placeholder {
  color: var(--muted);
}
.server-group select:focus,
.server-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.footer{
  width:100%;
  max-width:var(--max-width);
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:18px 10px;
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
}
.features{
  background:var(--card);
  padding:18px;
  border-radius:14px;
  color:var(--muted);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.features h2{color:var(--text-dark);margin-top:0}
.faq{
  background:var(--card);
  padding:18px;
  border-radius:14px;
  color:var(--muted);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.faq h2{color:var(--text-dark);margin-top:0}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 0;
}
.faq p {
  padding-left: 20px;
  font-size: 14px;
}
.faq details:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
}
@media (max-width: 860px){
  .card{flex-direction:column;align-items:stretch}
  .illustration{width:100%;flex:0 0 auto}
  .header{flex-direction:row;align-items:center;justify-content:space-between;}
  .hero { flex-direction: column; text-align: center; }
  .hero .right { display: none; }
  .footer { flex-direction: column; text-align: center; gap: 8px; }
}
.brand svg rect[fill]{
  fill: var(--accent); /* Accent color */
}
.brand svg polygon[fill="#355555"]{
  fill: #355555;
}
.hero .right svg rect[fill="#071021"] {
  fill: #e2e8f0; /* Light grey box for contrast */
}
.hero .right svg rect[fill="#071a2b"] {
  fill: #cbd5e1; /* Lighter blue/grey */
}
.hero .right svg path[fill="var(--accent)"] {
  fill: var(--accent); /* Keep accent color for play button */
}
.hero .right svg rect[fill="#071626"] {
  fill: #e2e8f0; /* Light grey */
}
.hero .right svg circle[fill="#7b2f06"] {
  fill: var(--accent-600); /* Accent darker */
}
.hero .right svg rect[fill="#0b2130"] {
  fill: #94a3b8; /* Medium grey */
}
.illustration svg rect[fill="var(--card)"] {
  fill: var(--card); /* Card background */
}
.illustration svg path[fill="#071a2b"] {
  fill: #cbd5e1; /* Lighter blue/grey for the cloud base */
}
.illustration svg rect[fill="var(--accent)"] {
  fill: var(--accent); /* Accent color for upload arrow */
}
.illustration svg path[stroke="var(--accent)"] {
  stroke: var(--accent); /* Accent color for upload arrow line */
}
#fileMeta svg rect[fill="#071a2b"] {
  fill: #e2e8f0; /* Light grey box */
}
#fileMeta svg path[fill="var(--accent)"] {
  fill: var(--accent);
}
#remoteUrlUi svg path[stroke="var(--accent)"] {
  stroke: var(--accent);
}
.dark-mode .brand svg rect[fill]{
  fill: var(--accent); /* Accent color */
}
.dark-mode .brand svg polygon[fill="#355555"]{
  fill: var(--accent); /* Use white for better visibility in dark mode */
}
.dark-mode .hero .right svg rect[fill="#071021"],
.dark-mode .hero .right svg rect[fill="#e2e8f0"] {
  fill: #0b1220; /* Darker box in dark mode (from original file) */
}
.dark-mode .hero .right svg rect[fill="#071a2b"] {
  fill: #071a2b; /* KEEP: Specified color for the main video screen rectangle */
}
.dark-mode .hero .right svg path[fill="var(--accent)"] {
  fill: var(--accent-600); /* Use brighter accent in dark mode for play button */
}
.dark-mode .hero .right svg rect[fill="#071626"] {
  fill: #071626; /* KEEP: Specified color for the timeline/strip rectangle */
}
.dark-mode .hero .right svg circle[fill="#7b2f06"] {
  fill: var(--accent); /* KEEP: Specified color for the circle (playback indicator) */
}
.dark-mode .hero .right svg rect[fill="#0b2130"] {
  fill: #0b2130; /* KEEP: Specified color for the progress bar rectangle */
}
.dark-mode .hero .right svg rect[fill="#cbd5e1"],
.dark-mode .hero .right svg rect[fill="#94a3b8"] {
  fill: #475569; /* Use existing fallback for other rects */
}
.dark-mode .illustration svg path[fill="#071a2b"] {
  fill: #071a2b; /* KEEP: Specified color for the cloud base in dark mode */
}
.dark-mode #fileMeta svg rect[fill="#071a2b"],
.dark-mode #fileMeta svg rect[fill="#e2e8f0"] {
  fill: #334155; /* Dark grey box for file/link icon background */
}
.dark-mode #fileMeta svg path[fill="var(--accent)"] {
  fill: var(--accent-600); /* Brighter accent for video icon */
}
.dark-mode #remoteUrlUi svg path[stroke="var(--accent)"] {
  stroke: var(--accent-600); /* Brighter accent for link icon */
}