/* ==========================
   GLOBAL
========================== */

:root{
    --primary:#4f46e5;
    --secondary:#7c3aed;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;

    --bg:#f8fafc;
    --card:#ffffff;
    --text:#1e293b;
    --border:#e2e8f0;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

.main-wrapper{
    min-height:100vh;
}

/* ==========================
   LOGIN PAGE
========================== */

.login-body{
    min-height:100vh;
    background:
    linear-gradient(
    135deg,
    #4f46e5,
    #7c3aed);
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-container{
    width:100%;
    max-width:450px;
    padding:20px;
}

.login-card{
    background:white;
    border-radius:20px;
    padding:40px;
    box-shadow:
    0 15px 40px rgba(0,0,0,.2);
}

.login-icon{
    font-size:70px;
    color:var(--primary);
    margin-bottom:15px;
}

.login-card h3{
    font-weight:700;
}

.login-card .form-control{
    height:50px;
    border-radius:12px;
}

.login-card .btn{
    height:50px;
    border-radius:12px;
    font-weight:600;
}

/* ==========================
   DASHBOARD LAYOUT
========================== */

.dashboard-layout{
    display:flex;
}

.content-wrapper{
    margin-left:270px;
    width:100%;
    min-height:100vh;
}

/* ==========================
   SIDEBAR
========================== */

.sidebar{
    width:270px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;

    background:
    linear-gradient(
    180deg,
    #4f46e5,
    #6d28d9);

    color:white;

    overflow-y:auto;
    z-index:1000;
}

.sidebar-header{
    text-align:center;
    padding:30px 20px;
}

.church-logo{
    width:80px;
    height:80px;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    display:flex;
    justify-content:center;
    align-items:center;

    margin:auto;
    margin-bottom:15px;

    font-size:35px;
}

.sidebar-header h5{
    font-weight:700;
}

.sidebar-header small{
    opacity:.8;
}

.sidebar-menu{
    list-style:none;
    padding:10px;
}

.sidebar-menu li{
    margin-bottom:8px;
}

.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:12px;

    color:white;

    padding:14px 18px;

    border-radius:12px;

    transition:.3s;
}

.sidebar-menu a:hover{
    background:rgba(255,255,255,.15);
    transform:translateX(5px);
}

.sidebar-menu i{
    width:25px;
}

/* ==========================
   NAVBAR
========================== */

.top-navbar{
    background:white;
    padding:15px 25px;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.user-profile{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
}

.user-profile i{
    font-size:28px;
    color:var(--primary);
}

.date-time{
    font-weight:500;
}

/* ==========================
   HEADER
========================== */

.dashboard-header{
    padding:25px;
    border-radius:20px;

    color:white;

    background:
    linear-gradient(
    135deg,
    #4f46e5,
    #7c3aed);

    margin-bottom:25px;
}

.dashboard-header h2{
    margin-bottom:5px;
    font-weight:700;
}

/* ==========================
   STAT CARDS
========================== */

.stat-card{
    border-radius:20px;
    padding:25px;

    color:white;

    position:relative;

    overflow:hidden;

    transition:.3s;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card i{
    font-size:40px;
    margin-bottom:15px;
}

.stat-card h3{
    font-size:35px;
    font-weight:700;
}

.stat-card p{
    margin:0;
}

.card-members{
    background:
    linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8);
}

.card-present{
    background:
    linear-gradient(
    135deg,
    #16a34a,
    #15803d);
}

.card-absent{
    background:
    linear-gradient(
    135deg,
    #dc2626,
    #b91c1c);
}

.card-percent{
    background:
    linear-gradient(
    135deg,
    #f59e0b,
    #d97706);
}

/* ==========================
   CARD DESIGN
========================== */

.card{
    border:none;
    border-radius:20px;
}

.card-header{
    background:white;
    border:none;
    font-weight:600;
    padding:20px;
}

.card-body{
    padding:25px;
}

/* ==========================
   TABLES
========================== */

.table{
    vertical-align:middle;
}

.table thead{
    background:#f8fafc;
}

.table thead th{
    border:none;
    font-weight:600;
}

.table tbody tr:hover{
    background:#f8fafc;
}

/* ==========================
   BUTTONS
========================== */

.btn{
    border-radius:12px;
}

.btn-primary{
    background:var(--primary);
    border:none;
}

.btn-primary:hover{
    background:#4338ca;
}

/* ==========================
   BADGES
========================== */

.badge-present{
    background:#16a34a;
    color:white;
}

.badge-absent{
    background:#dc2626;
    color:white;
}

/* ==========================
   DARK MODE
========================== */

.dark-mode{
    background:#0f172a;
    color:#e2e8f0;
}

.dark-mode .top-navbar{
    background:#1e293b;
}

.dark-mode .card{
    background:#1e293b;
    color:white;
}

.dark-mode .card-header{
    background:#1e293b;
    color:white;
}

.dark-mode .table{
    color:white;
}

.dark-mode .table thead{
    background:#334155;
}

.dark-mode .dashboard-header{
    background:
    linear-gradient(
    135deg,
    #312e81,
    #4c1d95);
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#6366f1;
    border-radius:20px;
}



.timeline{
    position:relative;
}

.timeline::before{
    content:'';
    position:absolute;
    left:25px;
    top:0;
    width:3px;
    height:100%;
    background:#4f46e5;
}

.timeline-item{
    position:relative;
    padding-left:70px;
    margin-bottom:25px;
}

.timeline-icon{
    position:absolute;
    left:8px;
    top:0;
    width:35px;
    height:35px;
    border-radius:50%;
    background:#4f46e5;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
}

.timeline-content{
    background:#fff;
    border-radius:15px;
    padding:20px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
}
/* ==========================
   MOBILE
========================== */

@media(max-width:992px){

    .sidebar{
        left:-270px;
        transition:.3s;
    }

    .sidebar.active{
        left:0;
    }

    .content-wrapper{
        margin-left:0;
    }

    .dashboard-header{
        text-align:center;
    }

    .stat-card{
        margin-bottom:15px;
    }
}