@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f06292;
    --secondary: #ec407a;
    --success: #4cc9f0;
    --info: #f48fb1;
    --warning: #f72585;
    --danger: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --body-bg: #fdf6f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --sidebar-w: 260px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #fce4ec 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: drift 10s infinite linear;
}

@keyframes drift {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-nav {
    list-style: none;
    padding: 1.5rem 1rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-nav a i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.3);
}

.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    padding: 2rem;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Status Badges */
.badge-hadir { background: var(--success); }
.badge-izin { background: var(--warning); }
.badge-sakit { background: var(--info); }
.badge-alpha { background: var(--danger); }

tbody tr {
    transition: all 0.2s;
}
tbody tr:hover {
    background-color: rgba(240, 98, 146, 0.03) !important;
}

/* ============================================
   Override Bootstrap dengan warna Pink
   ============================================ */
:root {
    --bs-primary: #f06292;
    --bs-primary-rgb: 240, 98, 146;
    --bs-info: #f48fb1;
    --bs-info-rgb: 244, 143, 177;
    --bs-link-color: #f06292;
    --bs-link-hover-color: #ec407a;
}

.text-primary { color: #f06292 !important; }
.text-info    { color: #f48fb1 !important; }

.bg-primary {
    background-color: #f06292 !important;
}
.bg-info {
    background-color: #f48fb1 !important;
}

.btn-primary,
.btn-primary:focus {
    background-color: #f06292 !important;
    border-color: #f06292 !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #ec407a !important;
    border-color: #ec407a !important;
}

.btn-outline-primary {
    color: #f06292 !important;
    border-color: #f06292 !important;
}
.btn-outline-primary:hover {
    background-color: #f06292 !important;
    color: #fff !important;
}

.btn-outline-info {
    color: #e91e8c !important;
    border-color: #f48fb1 !important;
}

.alert-info {
    background-color: #fce4ec !important;
    border-color: #f48fb1 !important;
    color: #880e4f !important;
}

.badge.bg-info {
    background-color: #f48fb1 !important;
    color: #fff !important;
}

.table-light {
    background-color: #fdf2f7 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #f06292 !important;
    box-shadow: 0 0 0 0.2rem rgba(240, 98, 146, 0.2) !important;
}

