/* ═══════════════════════════════════════════════════════════════
   IT MANAGER PRO — Main CSS
   Style: VIP Luxury Gold & Navy Blue
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --gold:        #D4AF37;
  --gold-light:  #f0c040;
  --gold-dark:   #a8860a;
  --gold-shine:  #ffe066;
  --navy:        #0d1b35;
  --navy-mid:    #1a2a4a;
  --navy-light:  #243659;
  --navy-border: #2d4070;
  --white:       #ffffff;
  --white-dim:   rgba(255,255,255,0.85);
  --white-faint: rgba(255,255,255,0.08);
  --text-muted:  rgba(255,255,255,0.55);
  --success:     #28a745;
  --danger:      #dc3545;
  --warning:     #ffc107;
  --info:        #17a2b8;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.35);
  --shadow-gold: 0 4px 24px rgba(212,175,55,0.25);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:   'Inter', sans-serif;
  --font-title:  'Playfair Display', serif;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.itmp-page {
  font-family: var(--font-main);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Utility ─────────────────────────────────────────────────── */
.itmp-hidden    { display: none !important; }
.itmp-text-gold { color: var(--gold); }
.itmp-text-muted{ color: var(--text-muted); }
.itmp-flex      { display: flex; }
.itmp-flex-center{ display: flex; align-items: center; justify-content: center; }
.itmp-gap-1     { gap: 8px; }
.itmp-gap-2     { gap: 16px; }
.itmp-mt-1      { margin-top: 8px; }
.itmp-mt-2      { margin-top: 16px; }
.itmp-mb-1      { margin-bottom: 8px; }
.itmp-mb-2      { margin-bottom: 16px; }

/* ── Gold Divider ────────────────────────────────────────────── */
.itmp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px 0;
  opacity: 0.5;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.itmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.itmp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}
.itmp-btn:hover::before { opacity: 1; }

.itmp-btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.itmp-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,175,55,0.45);
  color: var(--navy);
  text-decoration: none;
}

.itmp-btn-navy {
  background: var(--navy-light);
  color: var(--white);
  border: 1px solid var(--navy-border);
}
.itmp-btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.itmp-btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.itmp-btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.itmp-btn-sm { padding: 8px 18px; font-size: 13px; }
.itmp-btn-lg { padding: 16px 36px; font-size: 16px; }
.itmp-btn-full { width: 100%; }

.itmp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Form Controls ───────────────────────────────────────────── */
.itmp-form-group {
  margin-bottom: 20px;
}

.itmp-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.itmp-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--white-faint);
  border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.itmp-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.itmp-input::placeholder { color: var(--text-muted); }
.itmp-input.has-icon { padding-left: 44px; }

.itmp-input-wrap {
  position: relative;
}
.itmp-input-wrap .itmp-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition);
}
.itmp-input-wrap:focus-within .itmp-input-icon { color: var(--gold); }

.itmp-input-wrap .itmp-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.itmp-input-toggle:hover { color: var(--gold); }

/* ── Alert / Notice ──────────────────────────────────────────── */
.itmp-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInDown 0.3s ease;
}
.itmp-alert-success { background: rgba(40,167,69,0.18); border: 1px solid rgba(40,167,69,0.4); color: #6fcf97; }
.itmp-alert-error   { background: rgba(220,53,69,0.18);  border: 1px solid rgba(220,53,69,0.4);  color: #f07070; }
.itmp-alert-warning { background: rgba(255,193,7,0.18);  border: 1px solid rgba(255,193,7,0.4);  color: #ffc107; }
.itmp-alert-info    { background: rgba(23,162,184,0.18); border: 1px solid rgba(23,162,184,0.4); color: #56cfe1; }

/* ── Card ─────────────────────────────────────────────────────── */
.itmp-card {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.itmp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Spinner ──────────────────────────────────────────────────── */
.itmp-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown  { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse       { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Gold Shimmer Text ───────────────────────────────────────── */
.itmp-shimmer {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-shine), var(--gold), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── Badge ────────────────────────────────────────────────────── */
.itmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.itmp-badge-gold    { background: rgba(212,175,55,0.2);  color: var(--gold);    border: 1px solid var(--gold-dark); }
.itmp-badge-green   { background: rgba(40,167,69,0.2);   color: #6fcf97;        border: 1px solid rgba(40,167,69,0.4); }
.itmp-badge-red     { background: rgba(220,53,69,0.2);   color: #f07070;        border: 1px solid rgba(220,53,69,0.4); }
.itmp-badge-blue    { background: rgba(23,162,184,0.2);  color: #56cfe1;        border: 1px solid rgba(23,162,184,0.4); }
.itmp-badge-orange  { background: rgba(255,165,0,0.2);   color: #ffb347;        border: 1px solid rgba(255,165,0,0.4); }

/* ── Toast Notification ──────────────────────────────────────── */
.itmp-toast-wrap {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.itmp-toast {
  background: var(--navy-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInLeft 0.4s ease;
  font-size: 14px;
}
.itmp-toast.success { border-color: var(--success); }
.itmp-toast.error   { border-color: var(--danger); }
.itmp-toast.warning { border-color: var(--warning); }
.itmp-toast .toast-icon { font-size: 18px; }
.itmp-toast .toast-close { margin-left: auto; cursor: pointer; color: var(--text-muted); }
.itmp-toast .toast-close:hover { color: var(--white); }
