/* =====================================================
   TutionPro
   Main Stylesheet
   ===================================================== */

:root {
    --tp-primary: #2563eb;
    --tp-primary-dark: #1d4ed8;
    --tp-bg: #f5f7fb;
    --tp-card: #ffffff;
    --tp-text: #172033;
    --tp-muted: #718096;
    --tp-border: #e7ebf2;
    --tp-sidebar: #111827;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--tp-bg);
    color: var(--tp-text);
}


a {
    text-decoration: none;
}


/* =====================================================
   LOGIN
   ===================================================== */

.tp-login-body {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #eef4ff 0%,
        #f8fafc 100%
    );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}


.tp-login-wrapper {
    width: 100%;
    max-width: 430px;
}


.tp-login-card {
    background: #ffffff;
    border: 1px solid var(--tp-border);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}


.tp-login-logo {
    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--tp-primary);
    color: #ffffff;

    font-size: 32px;
}


.tp-login-card h1 {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
}


.tp-login-subtitle {
    text-align: center;
    color: var(--tp-muted);
    font-size: 14px;
    margin-bottom: 30px;
}


.tp-input-group {
    margin-bottom: 20px;
}


.tp-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}


.tp-input-wrapper {
    position: relative;
}


.tp-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}


.tp-input-wrapper input {
    height: 50px;
    border-radius: 12px;
    padding-left: 44px;
    border: 1px solid var(--tp-border);
}


.tp-input-wrapper input:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


.tp-login-btn {
    height: 52px;
    border-radius: 12px;
    background: var(--tp-primary);
    color: #ffffff;
    font-weight: 700;
    border: none;
}


.tp-login-btn:hover {
    background: var(--tp-primary-dark);
    color: #ffffff;
}


.tp-login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--tp-muted);
    font-size: 12px;
}


/* =====================================================
   SIDEBAR
   ===================================================== */

.tp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    width: 250px;

    background: var(--tp-sidebar);
    color: #ffffff;

    padding: 24px 16px;

    z-index: 1000;
}


.tp-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 5px 10px 30px;
}


.tp-logo {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--tp-primary);
}


.tp-brand-name {
    font-weight: 800;
    font-size: 18px;
}


.tp-brand-sub {
    font-size: 10px;
    color: #9ca3af;
}


.tp-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.tp-menu a,
.tp-sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 13px;

    color: #9ca3af;

    padding: 12px 13px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}


.tp-menu a:hover,
.tp-menu a.active,
.tp-sidebar-bottom a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}


.tp-sidebar-bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
}


/* =====================================================
   MAIN
   ===================================================== */

.tp-main {
    margin-left: 250px;
    min-height: 100vh;
}


.tp-topbar {
    min-height: 82px;

    background: #ffffff;

    border-bottom: 1px solid var(--tp-border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 30px;
}


.tp-page-title {
    font-size: 22px;
    font-weight: 800;
}


.tp-page-subtitle {
    font-size: 13px;
    color: var(--tp-muted);
}


.tp-user-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #dbeafe;
    color: var(--tp-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
}


.tp-content {
    padding: 30px;
}


/* =====================================================
   WELCOME CARD
   ===================================================== */

.tp-welcome-card {
    background: var(--tp-primary);
    color: #ffffff;

    border-radius: 20px;

    padding: 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    overflow: hidden;
}


.tp-welcome-label {
    opacity: 0.8;
    font-size: 13px;
    margin-bottom: 7px;
}


.tp-welcome-card h2 {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 7px;
}


.tp-welcome-card p {
    margin: 0;
    opacity: 0.85;
    font-size: 13px;
}


.tp-welcome-icon {
    font-size: 80px;
    opacity: 0.18;
}


/* =====================================================
   STAT CARDS
   ===================================================== */

.tp-stat-card {
    background: #ffffff;

    border: 1px solid var(--tp-border);

    border-radius: 16px;

    padding: 20px;

    height: 100%;

    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}


.tp-stat-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    font-size: 20px;
}


.tp-stat-icon.students {
    background: #dbeafe;
    color: #2563eb;
}


.tp-stat-icon.classes {
    background: #ede9fe;
    color: #7c3aed;
}


.tp-stat-icon.fees {
    background: #dcfce7;
    color: #16a34a;
}


.tp-stat-icon.papers {
    background: #fef3c7;
    color: #d97706;
}


.tp-stat-label {
    font-size: 12px;
    color: var(--tp-muted);
    margin-bottom: 5px;
}


.tp-stat-value {
    font-size: 22px;
    font-weight: 800;
}


/* =====================================================
   QUICK ACTIONS
   ===================================================== */

.tp-section-header {
    margin: 30px 0 15px;
}


.tp-section-header h3 {
    font-size: 18px;
    font-weight: 800;
}


.tp-action-card {
    background: #ffffff;

    border: 1px solid var(--tp-border);

    border-radius: 15px;

    padding: 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--tp-text);

    transition: 0.2s;
}


.tp-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--tp-primary);
    color: var(--tp-primary);
}


.tp-action-card i {
    font-size: 20px;
}


/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */

.tp-mobile-nav {
    display: none;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 991px) {

    .tp-sidebar {
        display: none;
    }


    .tp-main {
        margin-left: 0;
        padding-bottom: 75px;
    }


    .tp-topbar {
        padding: 14px 18px;
        min-height: 70px;
    }


    .tp-content {
        padding: 18px;
    }


    .tp-welcome-card {
        padding: 22px;
    }


    .tp-welcome-card h2 {
        font-size: 21px;
    }


    .tp-welcome-icon {
        font-size: 55px;
    }


    .tp-mobile-nav {
        position: fixed;

        display: flex;

        left: 10px;
        right: 10px;
        bottom: 10px;

        height: 64px;

        background: #ffffff;

        border: 1px solid var(--tp-border);

        border-radius: 18px;

        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);

        z-index: 2000;

        align-items: center;
        justify-content: space-around;
    }


    .tp-mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 3px;

        color: #64748b;

        font-size: 10px;
        font-weight: 600;
    }


    .tp-mobile-nav a i {
        font-size: 19px;
    }


    .tp-mobile-nav a:hover {
        color: var(--tp-primary);
    }

}


@media (max-width: 575px) {

    .tp-login-card {
        padding: 30px 22px;
        border-radius: 20px;
    }


    .tp-welcome-card {
        min-height: 160px;
    }


    .tp-welcome-icon {
        display: none;
    }


    .tp-stat-card {
        padding: 16px;
    }


    .tp-stat-value {
        font-size: 19px;
    }

}