/* UNIZIK VC Portal - Main CSS */
/* Converted from Tailwind CSS to Vanilla CSS */

:root {
    /* Brand Colors */
    --color-primary: #030f27;
    --color-secondary: #21618c;
    --color-accent: #d25400;

    /* Status Colors */
    --color-pending: #f59e0b;
    --color-in-progress: #3b82f6;
    --color-resolved: #10b981;
    --color-verified: #8b5cf6;
    --color-error: #ef4444;

    /* Category Colors */
    --color-academics: #3b82f6;
    --color-infrastructure: #f59e0b;
    --color-student-welfare: #ec4899;
    --color-staff-welfare: #8b5cf6;
    --color-security: #ef4444;
    --color-administration: #10b981;
    --color-facilities: #6b7280;

    /* Neutral Colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #b84800;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .lg\:grid-cols-3,
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Spacing Utilities */
.mt-4 {
    margin-top: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-md);
}

.mb-8 {
    margin-bottom: var(--spacing-xl);
}

.p-4 {
    padding: var(--spacing-md);
}

.p-6 {
    padding: var(--spacing-lg);
}

.p-8 {
    padding: var(--spacing-xl);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

/* Background Utilities */
.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: var(--color-gray-50);
}

.bg-primary {
    background-color: var(--color-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 0.8s ease-out 0.2s both;
}

.animate-slide-down {
    animation: slideDown 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Visibility */
.hidden {
    display: none;
}

@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 769px) {
    .md\:block {
        display: block;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* HTMX Loading States */
.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

.htmx-swapping {
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

/* React Design Specific Colors */
:root {
    --color-hero-bg: #030f27;
    --color-hero-text: #cbd5e0;
    --color-accent-light: #FFF4ED;
    --color-blue-light: #EFF6FF;
    --color-green-light: #ECFDF5;
}

/* Sizing Utilities */
.w-full {
    width: 100%;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-48 {
    width: 12rem;
}

.h-full {
    height: 100%;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-48 {
    height: 12rem;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-md {
    max-width: 28rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-16 {
    top: 4rem;
}

.z-40 {
    z-index: 40;
}

/* Display & Flex */
.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow {
    flex-grow: 1;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.object-cover {
    object-fit: cover;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Typography */
.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.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;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-200 {
    border-color: var(--color-gray-200);
}

.border-gray-100 {
    border-color: var(--color-gray-100);
}

.border-dashed {
    border-style: dashed;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* Spacing */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Colors */
.bg-hero {
    background-color: var(--color-hero-bg);
}

.text-hero-text {
    color: var(--color-hero-text);
}

.text-accent {
    color: var(--color-accent);
}

.hover\:text-accent:hover {
    color: var(--color-accent);
}

.bg-accent {
    background-color: var(--color-accent);
}

.hover\:bg-gray-50:hover {
    background-color: var(--color-gray-50);
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: 300s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:shadow-md:hover {
    box-shadow: var(--shadow-md);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

/* Custom Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Specific Color Classes for React Design */
.bg-\[\#f9fafb\] {
    background-color: #f9fafb;
}

.bg-\[\#030f27\] {
    background-color: #030f27;
}

.text-\[\#cbd5e0\] {
    color: #cbd5e0;
}

.bg-\[\#d25400\] {
    background-color: #d25400;
}

.text-\[\#4b5563\] {
    color: #4b5563;
}

.text-\[\#030f27\] {
    color: #030f27;
}

.text-\[\#6b7280\] {
    color: #6b7280;
}

.text-\[\#d25400\] {
    color: #d25400;
}

.hover\:text-\[\#d25400\]:hover {
    color: #d25400;
}

/* Responsive */
@media (min-width: 768px) {
    .md\:px-20 {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-48 {
        width: 12rem;
    }

    .md\:w-auto {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}