/* IANORCAL MASTER DESIGN SYSTEM - LIQUID GLASS THEME */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:wght@400;700;900&display=swap');

:root {
  /* Colors */
  --color-primary: #0F172A;   /* Deep Charcoal */
  --color-secondary: #1E293B; /* Slate */
  --color-gold: #CA8A04;      /* Regal Gold */
  --color-gold-light: #EAB308;
  --color-background: #FAFAF9; /* Cream/White */
  --color-text: #020617;      /* Rich Black */
  --color-border: #E2E8F0;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 35px 60px -15px rgba(0,0,0,0.3);

  /* Dashboard Config */
  --sidebar-width: 280px;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

/* Liquid Glass Components */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: 16px;
}

.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), #A16207);
  color: white;
  box-shadow: 0 4px 15px rgba(202, 138, 4, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(202, 138, 4, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-gold);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 2rem;
  border-radius: 14px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.btn-premium:hover {
  background: var(--color-gold);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(202, 138, 4, 0.3);
  border-color: var(--color-gold);
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(to right, var(--color-primary), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
  text-align: center;
}

/* Animation Placeholders (Will be targetted by Motion.js) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* Card System */
.card {
  background: white;
  border-radius: 12px;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(202, 138, 4, 0.05),
    transparent
  );
  transition: 0.5s;
}

.card:hover::after {
  left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.announcement-item {
  padding: 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.2s ease;
  cursor: pointer;
}

.announcement-item:hover {
  background: #F8FAFC;
}

.announcement-item:last-child { 
  border-bottom: none; 
}

/* ==========================================================================
   PORTAL DASHBOARD PRO MAX STYLES
   ========================================================================== */

/* Layout Containers */
.dashboard-body {
  background: #F8FAFC;
  min-height: 100vh;
  overflow-x: hidden;
}

.dashboard-main {
  margin-left: var(--sidebar-width);
  padding: 3rem;
  max-width: 1400px;
}

@media (max-width: 1024px) {
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-main { margin-left: 0; padding: 2rem; max-width: 100vw; }
}

/* Sidebar Architecture */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--color-primary);
  color: white;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: white;
  transform: translateX(4px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.15), rgba(202, 138, 4, 0.05));
  border: 1px solid rgba(202, 138, 4, 0.3);
  color: var(--color-gold-light);
  box-shadow: inset 0 0 20px rgba(202, 138, 4, 0);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-gold);
  border-radius: 0 4px 4px 0;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.nav-link.active svg {
  color: var(--color-gold);
  opacity: 1;
}

/* Fluid Glass Panels & Cards */
.panel-glass-pro {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.panel-glass-pro:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.card-glass-pro {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card-glass-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(202, 138, 4, 0.4);
}

/* Forms & Inputs Dashboard */
.input-group-pro {
  margin-bottom: 2rem;
}

.input-label-pro {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.input-field-pro {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0F172A;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field-pro:focus {
  outline: none;
  background: white;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.1);
}

.input-field-pro:disabled {
  background: #F1F5F9;
  color: #94A3B8;
  cursor: not-allowed;
  border-color: #E2E8F0;
}

/* Badges */
.status-badge-pro {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge-pro.paid { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.status-badge-pro.overdue { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* Line Clamping Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
