/* Custom styles for Counseling System — Cornell University Brand Theme */

/* xs breakpoint utilities */
@media (max-width: 479px) {
    .xs\:hidden { display: none !important; }
    .xs\:inline { display: inline !important; }
    .xs\:block { display: block !important; }
    .xs\:flex { display: flex !important; }
    .xs\:text-sm { font-size: 0.875rem !important; }
    .xs\:text-xs { font-size: 0.75rem !important; }
    .xs\:w-full { width: 100% !important; }
    .xs\:mt-1 { margin-top: 0.25rem !important; }
    .xs\:mt-2 { margin-top: 0.5rem !important; }
    .xs\:mb-2 { margin-bottom: 0.5rem !important; }
    .xs\:px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .xs\:py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
}

/* Sidebar scrollbar */
#sidebar nav::-webkit-scrollbar { width: 4px; }
#sidebar nav::-webkit-scrollbar-track { background: transparent; }
#sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Cornell Red focus ring */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #b31b1b;
    box-shadow: 0 0 0 3px rgba(179, 27, 27, 0.12);
}

/* Card hover elevation */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(34, 34, 34, 0.1);
}

/* Loading spinner in Cornell Red */
.spinner {
    border: 3px solid #e9e9e9;
    border-top: 3px solid #b31b1b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Timeline */
.timeline-line {
    position: relative;
}
.timeline-line::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d6d6d6;
}
.timeline-dot {
    position: relative;
    z-index: 1;
}

/* Print-friendly */
@media print {
    #sidebar, header, footer, .no-print { display: none !important; }
    main { margin-left: 0 !important; padding: 0 !important; }
}

/* Table responsive */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-container table {
    min-width: 600px;
}

/* Status badges base */
.status-badge {
    @apply px-2 py-1 text-xs font-medium rounded-full whitespace-nowrap;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Section divider with Cornell Red accent */
.section-divider {
    border-top: 3px solid #b31b1b;
    width: 60px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Big stat number */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #b31b1b;
}

/* Cornell-inspired button */
.btn-cornell {
    background-color: #b31b1b;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-cornell:hover {
    background-color: #991b1b;
}