/* Scholarship Portal - Core Styles */
/* Tailwind CDN handles utilities; this file adds custom components */

:root {
  --primary: #4F46E5;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
}

/* Dynamic primary color from admin settings */
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-dark); }
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.border-primary { border-color: var(--primary); }

/* Countdown Timer */
.countdown-box { display: inline-flex; gap: 8px; align-items: center; }
.countdown-unit { text-align: center; background: #f3f4f6; border-radius: 6px; padding: 8px 12px; min-width: 56px; }
.countdown-unit .number { font-size: 1.5rem; font-weight: 700; color: #1f2937; line-height: 1; }
.countdown-unit .label { font-size: 0.65rem; text-transform: uppercase; color: #6b7280; margin-top: 2px; }
.countdown-urgent .countdown-unit { background: #fee2e2; }
.countdown-urgent .countdown-unit .number { color: #dc2626; }

/* Status Timeline */
.status-timeline { position: relative; padding-left: 28px; }
.status-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
.status-step { position: relative; padding-bottom: 20px; }
.status-step:last-child { padding-bottom: 0; }
.status-dot { position: absolute; left: -24px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e5e7eb; background: #fff; top: 2px; }
.status-dot.active { background: var(--primary); border-color: var(--primary); }
.status-dot.done { background: #10b981; border-color: #10b981; }
.status-dot.rejected { background: #ef4444; border-color: #ef4444; }

/* Form Builder Drag Handle */
.drag-handle { cursor: grab; color: #9ca3af; }
.drag-handle:active { cursor: grabbing; }
.form-field-card { border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.form-field-card:hover { border-color: #c7d2fe; }
.form-field-card.dragging { opacity: 0.5; border: 2px dashed var(--primary); }

/* Score Badge */
.score-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.score-high { background: #d1fae5; color: #065f46; }
.score-medium { background: #fef3c7; color: #92400e; }
.score-low { background: #fee2e2; color: #991b1b; }

/* Admin Sidebar */
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 6px; color: #374151; transition: all 0.15s; font-size: 0.875rem; }
.sidebar-link:hover, .sidebar-link.active { background: var(--primary-light); color: var(--primary); }
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #f9fafb; padding: 12px 16px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; font-weight: 600; border-bottom: 1px solid #e5e7eb; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; font-size: 0.875rem; color: #374151; }
.data-table tr:hover td { background: #f9fafb; }
.data-table tr:last-child td { border-bottom: none; }

/* Card */
.card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.card-header { padding: 16px 24px; border-bottom: 1px solid #f3f4f6; }
.card-body { padding: 24px; }

/* Stat Card */
.stat-card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 20px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: #111827; line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: #6b7280; margin-top: 4px; }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* Mobile responsive table wrapper */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Loading spinner */
.spinner { border: 3px solid #f3f4f6; border-top-color: var(--primary); border-radius: 50%; width: 24px; height: 24px; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* WhatsApp Button */
.btn-whatsapp { background: #25D366; color: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn-whatsapp:hover { background: #1da851; }

/* Print */
@media print {
  .no-print { display: none !important; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}
