/* ============================================
   BASE.CSS - Common Styles, Animations, Utilities
   ============================================ */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #2d3748;
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Flex 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;
}

/* Spinner Component */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E9CDCB;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Float Animation Class */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Animate Spin Class */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   BADGE COLORS (Skin Type Colors)
   ============================================ */

.bg-yellow-100 {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.bg-gray-100 {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.bg-green-100 {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.bg-purple-100 {
    background-color: #ede9fe !important;
    color: #5b21b6 !important;
}

.bg-red-100 {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.bg-blue-100 {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.bg-pink-100 {
    background-color: #fce7f3 !important;
    color: #9d174d !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 640px) {
    .sm\:hidden {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .sm\:flex {
        display: flex !important;
    }
}
