/* mobile/premium.css - Clone Desain AbsenKu */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

:root {
    /* Colors based on mockup */
    --color-primary: #1d4ed8;       /* Deep Blue */
    --color-primary-light: #eff6ff; /* Very light blue for bg */
    --color-success: #16a34a;       /* Green for Absen Masuk */
    --color-success-light: #dcfce7;
    --color-warning: #f59e0b;       /* Yellow/Orange for Izin */
    --color-warning-light: #fef3c7;
    --color-danger: #ef4444;        /* Red for Alfa/Logout */
    --color-danger-light: #fee2e2;
    
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(29, 78, 216, 0.08); /* Blueish shadow */
    --shadow-lg: 0 10px 25px rgba(29, 78, 216, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

body {
    margin: 0; padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    padding-bottom: 100px; /* Space for FAB bottom nav */
    -webkit-font-smoothing: antialiased;
}

/* Base Utility Classes */
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-gray { color: var(--text-gray); }

/* Typography */
h1, h2, h3, h4, p { margin: 0; }
.title-lg { font-size: 24px; font-weight: 700; color: var(--text-dark); }
.title-md { font-size: 18px; font-weight: 600; color: var(--text-dark); }
.subtitle { font-size: 14px; color: var(--text-gray); }

/* Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    width: 100%; border: none; font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 600; cursor: pointer;
    border-radius: var(--radius-xl); /* Very rounded pills */
    padding: 14px 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background-color: var(--color-primary); color: white; box-shadow: var(--shadow-md); }
.btn-success { background-color: var(--color-success); color: white; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2); }
.btn-outline { background-color: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline-danger { background-color: var(--color-danger-light); color: var(--color-danger); border: none; }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.card-blue {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Bottom Navigation with FAB */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white;
    display: flex; justify-content: space-around; align-items: flex-end;
    padding: 10px 5px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    border-radius: 24px 24px 0 0;
    z-index: 1000;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--text-light); text-decoration: none;
    font-size: 11px; font-weight: 500;
    width: 20%; padding: 5px 0;
    transition: 0.2s;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--color-primary); }

/* The Floating Action Button in Nav */
.nav-fab-wrapper {
    position: relative; width: 20%; display: flex; justify-content: center; align-items: flex-end;
}
.nav-fab {
    position: absolute; bottom: 15px; /* stick out from bottom nav */
    width: 60px; height: 60px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
    border: 4px solid var(--bg-main); /* Match app background */
    text-decoration: none;
    transition: 0.2s;
}
.nav-fab:active { transform: translateY(2px) scale(0.95); }

/* Inputs */
.input-group {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    display: flex; align-items: center;
    padding: 0 16px;
    margin-bottom: 16px;
    transition: 0.2s;
}
.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.input-group i { color: var(--text-light); margin-right: 12px; }
.input-group input {
    border: none; outline: none; background: transparent;
    padding: 16px 0; width: 100%; font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-enter {
    animation: slideUp 0.4s ease-out forwards;
}
