/* Chishtiya College Recruitment Portal - Isolated Stylesheet */
:root {
  --rec-primary: #003366;
  --rec-primary-dark: #002244;
  --rec-primary-light: #0055a5;
  --rec-primary-subtle: #e6f0fa;
  --rec-accent: #d4af37;
  --rec-accent-light: #fef9e7;
  --rec-bg: #f8fafc;
  --rec-surface: #ffffff;
  --rec-text: #1e293b;
  --rec-muted: #64748b;
  --rec-border: #e2e8f0;
  --rec-success: #16a34a;
  --rec-danger: #dc2626;
  --rec-warning: #d97706;
  --rec-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--rec-bg);
  color: var(--rec-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rec-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.rec-header {
  background: var(--rec-primary-dark);
  color: #fff;
  border-bottom: 4px solid var(--rec-accent);
  padding: 1rem 0;
}
.rec-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.rec-brand h1 { font-size: 1.25rem; font-weight: 700; color: #fff; }
.rec-brand span { font-size: 0.85rem; color: #cbd5e1; }
.rec-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.rec-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}
.rec-nav a:hover, .rec-nav a.active { background: var(--rec-primary-light); color: #fff; }

/* Main */
.rec-main { flex: 1; padding: 2rem 0; }

/* Cards */
.rec-card {
  background: var(--rec-surface);
  border: 1px solid var(--rec-border);
  border-radius: var(--rec-radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}
.rec-card-title { font-size: 1.2rem; color: var(--rec-primary-dark); margin-bottom: 1rem; font-weight: 700; }

/* Grid */
.rec-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.rec-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* Forms */
.rec-form-group { margin-bottom: 1rem; }
.rec-form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--rec-primary-dark); }
.rec-input, .rec-select, .rec-textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rec-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
.rec-input:focus, .rec-select:focus, .rec-textarea:focus {
  outline: none;
  border-color: var(--rec-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.15);
}

/* Buttons */
.rec-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.rec-btn-primary { background: var(--rec-primary); color: #fff; }
.rec-btn-primary:hover { background: var(--rec-primary-light); }
.rec-btn-accent { background: var(--rec-accent); color: #000; }
.rec-btn-outline { background: transparent; border-color: var(--rec-primary); color: var(--rec-primary); }
.rec-btn-danger { background: var(--rec-danger); color: #fff; }
.rec-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; }

/* Alerts */
.rec-alert { padding: 0.9rem 1.1rem; border-radius: 6px; margin-bottom: 1.25rem; font-size: 0.92rem; }
.rec-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.rec-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.rec-alert-info { background: var(--rec-primary-subtle); border: 1px solid #bfdbfe; color: var(--rec-primary-dark); }

/* Tables */
.rec-table-wrap { overflow-x: auto; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rec-table th, .rec-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--rec-border); text-align: left; }
.rec-table th { background: var(--rec-primary-subtle); color: var(--rec-primary-dark); font-weight: 700; }

/* Badges */
.rec-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.rec-badge-published { background: #dcfce7; color: #166534; }
.rec-badge-draft { background: #f1f5f9; color: #475569; }
.rec-badge-closed { background: #fef3c7; color: #92400e; }
.rec-badge-archived { background: #fee2e2; color: #991b1b; }

/* Footer */
.rec-footer { background: var(--rec-primary-dark); color: #cbd5e1; padding: 1.25rem 0; font-size: 0.85rem; text-align: center; margin-top: auto; }
