/* 
 * Custom CSS 
 * This file provides all the utility classes used in the HTML
 * with equivalent custom CSS styles and animations
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Layout Utilities */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

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

.items-start {
    align-items: flex-start;
}

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

.justify-end {
    justify-content: flex-end;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-1\/2 {
    left: 50%;
}

.overflow-hidden {
    overflow: hidden;
}

.pointer-events-none {
    pointer-events: none;
}

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

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

/* Flexbox & Grid */
.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.grid {
    display: grid;
}

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

.gap-4 {
    gap: 1rem;
}

/* Width & Height */
.w-full {
    width: 100%;
}

.w-24 {
    width: 6rem;
}

.w-96 {
    width: 24rem;
}

.h-24 {
    height: 6rem;
}
.h-16 {
    height: 4rem;
}
.h-20 {
    height: 5rem;
}

.h-auto {
    height: auto;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

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

.max-w-lg {
    max-width: 32rem;
}

/* Padding */
.p-1 {
    padding: 0.25rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

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

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-12 {
    padding-left: 3rem;
}

.pr-4 {
    padding-right: 1rem;
}

.pr-12 {
    padding-right: 3rem;
}

.pt-12 {
    padding-top: 3rem;
}

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

.mb-6 {
    margin-bottom: 1.5rem;
}

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

.mt-0\.5 {
    margin-top: 0.125rem;
}

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

.mt-1\.5 {
    margin-top: 0.375rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

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

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Transform Utilities */
.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.translate-x-1\/2 {
    transform: translateX(50%);
}

.translate-y-1\/2 {
    transform: translateY(50%);
}

/* Background Colors */
.bg-gray-50 {
    background-color: #f5f5f7;
}

.bg-white {
    background-color: #ffffff;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-green-50 {
    background-color: #afdfbd;
}

/* Text Colors */
.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #a8a8a8;
}

.text-gray-500 {
    color: #86868b;
}

.text-gray-600 {
    color: #6e6e73;
}

.text-gray-700 {
    color: #424245;
}

.text-gray-800 {
    color: #1d1d1f;
}

.text-black {
    color: #000000;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-700 {
    color: #b91c1c;
}

.text-red-800 {
    color: #991b1b;
}

.text-green-500 {
    color: #22c55e;
}

.text-green-700 {
    color: #15803d;
}

.text-green-800 {
    color: #166534;
}

/* Text Opacity */
.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9);
}

/* Text Sizes */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

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

/* Font Weights */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

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

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

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

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

.border-gray-300 {
    border-color: #d1d1d6;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-green-200 {
    border-color: #bbf7d0;
}

/* Border Radius */
.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

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

.rounded-lg {
    border-radius: 8px;
}

/* Shadows */
.shadow-xl {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.drop-shadow-2xl {
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* Opacity */
.opacity-10 {
    opacity: 0.1;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-75 {
    opacity: 0.75;
}

/* Focus Styles */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--ring-color, rgba(0, 0, 0, 0.5));
}

.focus\:ring-black:focus {
    --ring-color: rgba(0, 0, 0, 0.5);
}

.focus\:ring-offset-2:focus {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring-color, rgba(0, 0, 0, 0.5));
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

/* Hover States */
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:text-gray-600:hover {
    color: #6e6e73;
}

.hover\:text-gray-700:hover {
    color: #424245;
}

.hover\:text-blue-700:hover {
    color: #1d4ed8;
}

/* Block Display */
.block {
    display: block;
}

/* Responsive Design - Large Screens (lg: 1024px and up) */
@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }

    .lg\:hidden {
        display: none !important;
    }

    .lg\:w-1\/2 {
        width: 50% !important;
    }

    .lg\:pt-0 {
        padding-top: 0 !important;
    }
}

/* Responsive Design - Small Screens (sm: 640px and up) */
@media (min-width: 640px) {
    .sm\:p-12 {
        padding: 3rem;
    }

    .sm\:p-10 {
        padding: 2.5rem;
    }
}

/* SVG specific styles */
svg {
    display: inline-block;
    vertical-align: middle;
}

svg[fill="currentColor"] {
    fill: currentColor;
}

svg[fill="none"] {
    fill: none;
}

svg[stroke="currentColor"] {
    stroke: currentColor;
}

/* Button Reset */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Input Reset */
input {
    font-family: inherit;
}

input:focus {
    outline: none;
}

/* Link Reset */
a {
    text-decoration: none;
    color: inherit;
}

/* Form Elements */
input[type="email"],
input[type="password"] {
    display: block;
    width: 100%;
}

/* Smooth Transitions */
.border,
.bg-gray-50,
.bg-white,
button {
    transition: all 0.2s ease-in-out;
}

/* Spin Animation for Loading Indicators */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

