/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    color: #1f2937;
}

body.bg-gradient-to-br {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 50%, #ecfdf5 100%);
    background-attachment: fixed;
}

body.bg-gray-50 {
    background-color: #f9fafb;
    color: #1f2937;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-3 {
    gap: 0.75rem;
}

/* Card */
.card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s;
    width: 100%;
    font-size: 1rem;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: white;
    color: #374151;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.15s;
}

.btn-blue {
    background: linear-gradient(to right, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s;
}

.btn-blue:active {
    transform: scale(0.95);
}

/* Input */
.input-field {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: #10b981;
}

/* Text */
.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

/* Colors */
.text-gray-900 {
    color: #111827;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-emerald-600 {
    color: #059669;
}

.text-emerald-700 {
    color: #047857;
}

.text-emerald-800 {
    color: #065f46;
}

.text-emerald-900 {
    color: #064e3b;
}

.text-orange-600 {
    color: #ea580c;
}

.text-orange-700 {
    color: #c2410c;
}

.text-orange-900 {
    color: #7c2d12;
}

.text-yellow-900 {
    color: #713f12;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-100 {
    color: #dbeafe;
}

.text-white {
    color: white;
}

.bg-white {
    background-color: white;
}

.bg-emerald-500 {
    background: linear-gradient(to right, #10b981, #059669);
}

.bg-blue-500 {
    background: linear-gradient(to right, #3b82f6, #2563eb);
}

.bg-emerald-400 {
    background-color: #34d399;
}

.bg-orange-400 {
    background-color: #fb923c;
}

.bg-yellow-400 {
    background-color: #facc15;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gradient-to-br {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bg-gradient-to-r {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.from-blue-500 {
    /* Used with gradient */
}

.from-blue-600 {
    /* Used with gradient */
}

.to-blue-600 {
    /* Used with gradient */
}

.to-blue-700 {
    /* Used with gradient */
}

/* Alerts */
.alert-success {
    background-color: #ecfdf5;
    border: 2px solid #a7f3d0;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #eff6ff;
    border: 2px solid #bfdbfe;
    color: #1e40af;
    padding: 1rem;
    border-radius: 0.75rem;
}

/* Logo/Icon Container */
.logo-container {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.logo-container svg {
    width: 3rem;
    height: 3rem;
    color: white;
}

/* Clock Display */
#current-time {
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

#current-date {
    color: #4b5563;
    font-weight: 500;
}

/* Position Utilities */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.p-4 {
    padding: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Border & Rounded */
.rounded-full {
    border-radius: 9999px;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* Shadow */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Display Utilities */
.block {
    display: block;
}

.inline {
    display: inline;
}

.hidden {
    display: none;
}

/* Width */
.w-full {
    width: 100%;
}

.w-6 {
    width: 1.5rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

/* Height */
.h-6 {
    height: 1.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

/* SVG */
svg {
    display: inline-block;
}

/* Login Button */
.login-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.login-btn:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    #current-time {
        font-size: 2.5rem;
    }
}

/* Additional Classes */
.flex-1 {
    flex: 1;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Sticky */
.sticky {
    position: sticky;
}

.fixed {
    position: fixed;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* Border */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-emerald-200 {
    border-color: #a7f3d0;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-red-200 {
    border-color: #fecaca;
}

/* Background Colors Extended */
.bg-emerald-50 {
    background-color: #ecfdf5;
}

.bg-emerald-100 {
    background-color: #d1fae5;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-gradient-emerald {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Text Colors Extended */
.text-emerald-700 {
    color: #047857;
}

.text-emerald-800 {
    color: #065f46;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-100 {
    color: #dbeafe;
}

.text-orange-600 {
    color: #ea580c;
}

.text-orange-700 {
    color: #c2410c;
}

.text-red-800 {
    color: #991b1b;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-700 {
    color: #374151;
}

/* Opacity */
.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

/* Backdrop */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Spacing Extended */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.m-0 {
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

/* Max Width */
.max-w-md {
    max-width: 28rem;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Select None */
.select-none {
    user-select: none;
}

/* Transition */
.transition-all {
    transition: all 0.3s;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.transition-transform {
    transition: transform 0.15s;
}

/* Transform */
.active\:scale-95:active {
    transform: scale(0.95);
}

/* Hover */
.hover\:bg-emerald-600:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.hover\:bg-blue-600:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:text-emerald-700:hover {
    color: #047857;
}

.hover\:border-blue-200:hover {
    border-color: #bfdbfe;
}

/* Space Around */
.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* Justify & Align */
.justify-around {
    justify-content: space-around;
}

.items-start {
    align-items: flex-start;
}

/* Flex Direction */
.flex-row {
    flex-direction: row;
}

/* Inline Flex */
.inline-flex {
    display: inline-flex;
}

/* Text Decoration */
.no-underline {
    text-decoration: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Padding Bottom for Bottom Nav */
.pb-20 {
    padding-bottom: 5rem;
}

/* Shadow 2XL */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Badge/Pill */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Uppercase */
.uppercase {
    text-transform: uppercase;
}

/* Width Extended */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-8 {
    width: 2rem;
}

/* Height Extended */
.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-8 {
    height: 2rem;
}

/* Gap Extended */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Rows */
.rows-4 {
    grid-template-rows: repeat(4, minmax(0, 1fr));
}

/* Input File */
input[type="file"] {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    width: 100%;
}

input[type="file"]:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Checkbox */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    border-radius: 0.25rem;
    cursor: pointer;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Select dropdown */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    outline: none;
    background-color: white;
}

select:focus {
    border-color: #3b82f6;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

textarea:focus {
    border-color: #3b82f6;
}

/* Label */
label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
