/* =========================
   YTAC Shared UI (ui.css)
   ========================= */

/* Base */
:root{
  --bg: #f4f6f7;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --border: #d0d0d0;
  --tab-inactive: #e5e7eb;
  --tab-hover: #dbeafe;
  --tab-active: #2563eb;
  --tab-active-border: #1e40af;

  --btn-green: #1e8449;
  --btn-blue:  #1f4fd8;
  --btn-red:   #922b21;
  --btn-gray:  #34495e;

  --focus: #ffd54f;
}

*{ box-sizing: border-box; }

body{
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  color: var(--text);

  /* Wallpaper background */
  background:
    radial-gradient(circle at top left, #eef6ff 0%, transparent 40%),
    radial-gradient(circle at bottom right, #e8f5e9 0%, transparent 40%),
    linear-gradient(180deg, #f7f9fb 0%, #eef1f4 100%);

  background-attachment: fixed;
}


.card{
  max-width: 760px;
  margin: auto;
  background: var(--card);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}

h2{
  text-align: center;
  margin: 0 0 6px;
}

p{
  text-align: center;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Tabs */
.tabs{
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tab{
  flex: 1;
  min-width: 160px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--tab-inactive);
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
}

.tab:hover{
  background: var(--tab-hover);
}

.tab.active{
  background: var(--tab-active) !important;
  border-color: var(--tab-active-border) !important;
  color: #ffffff !important;
}

/* Inputs */
input[type="file"]{
  width: 100%;
  margin: 10px 0 10px;
}

.hint{
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

/* Buttons */
button{
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .4px;
}

button:disabled{
  background: #9ca3af !important;
  cursor: not-allowed;
}

button:hover:not(:disabled){
  filter: brightness(1.08);
}

button:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Button color helpers */
.btn-green{ background: var(--btn-green); }
.btn-blue { background: var(--btn-blue); }
.btn-red  { background: var(--btn-red); }
.btn-gray { background: var(--btn-gray); }

/* Layout helpers */
.row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row > *{ flex: 1; }

/* Preview */
.preview{
  margin-top: 12px;
  display: none;
}
.preview img,
.preview video{
  width: 100%;
  border-radius: 12px;
  background: #000;
}

/* Result blocks (optional common style) */
.result{
  margin-top: 16px;
  padding: 15px;
  background: #f1f1f1;
  border-radius: 10px;
  display: none;
}

.box{
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.35;
}

.label{ font-weight: 800; }

.pill{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef;
  font-size: 12px;
  margin-left: 6px;
}

/* =====================================================
   INTELLIGREEN GLOBAL HEADER (Shared Across Modules)
   ===================================================== */

.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a8f2e, #3ddc84);
  box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}

.ig-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-brand img {
  width: 44px;
  height: auto;
}

.ig-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.4px;
}

/* Navigation */
.ig-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ig-nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  color: #0a3d1e;
  background: #e9f7ef;
  border: 1px solid #cfeedd;
  transition: 0.2s ease;
  white-space: nowrap;
}

.ig-nav a:hover {
  background: #c6f1d8;
}

/* Mobile */
@media (max-width: 760px) {
  .ig-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.ig-page {
  padding-top: 12px;
}

/* ===== IntelliGreen watermark background (global) ===== */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* use your existing file name */
  background-image: url("logo (1).png");
  background-repeat: no-repeat;
  background-size: min(900px, 85vw);
  background-position: left 120px top 120px;

  opacity: 0.18; /* adjust */
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.25));
}

/* Make sure your header + content sit above watermark */
.ig-header{ position: relative; z-index: 9999; }
.ig-page{ position: relative; z-index: 1; }

