/* Neenga kuduthirukura CSS full-a inga paste pannunga */

:root {
    --primary: #0754c9;
    --dark-blue: #06245b;
    --orange: #ff8b00;
    --light-bg: #f3f7ff;
    --text: #13234b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--text);
}

button, a {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    padding: 12px;
    gap: 16px;
}

/* SIDEBAR */
.sidebar {
    width: 230px;
    min-width: 230px;
    background: linear-gradient(160deg, #092e75, #031a4b 75%, #075acb);
    border-radius: 14px;
    color: white;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: .3s ease;
}

.sidebar-logo {
    background: white;
    border-radius: 9px;
    padding: 8px;
    margin-bottom: 20px;
}

.sidebar-logo img {
    width: 100%;
    display: block;
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 18px;
    border-bottom: 1px solid #ffffff30;
}

.mini-avatar, .profile-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ffb04b, #ff6900);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
}

.user-mini h4 {
    font-size: 12px;
}

.user-mini small {
    font-size: 10px;
    opacity: .7;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.menu-link {
    text-decoration: none;
    color: #e5edff;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    transition: .3s;
}

.menu-link i {
    width: 17px;
    font-size: 15px;
}

.menu-link:hover {
    background: #ffffff25;
    transform: translateX(4px);
    color: white;
}

.menu-link.active {
    background: linear-gradient(90deg, #ffae27, #ff7900);
    color: white;
    box-shadow: 0 5px 15px #ff8b0050;
}

.sidebar-bottom {
    margin-top: auto;
    text-align: center;
    padding: 20px 5px 8px;
    position: relative;
    z-index: 1;
}

.rocket {
    font-size: 52px;
    animation: rocketFloat 3s ease-in-out infinite;
}

.sidebar-bottom p {
    font-size: 11px;
    line-height: 1.7;
    font-weight: 600;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* MAIN */
.main-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    background: white;
    border-radius: 12px;
    height: 65px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px #173a8010;
    position: relative;
    z-index: 10;
}

.top-logo {
    display: none;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

.notification-btn {
    position: relative;
    background: transparent;
    font-size: 20px;
    color: #092f78;
    padding: 8px;
}

.notification-dot {
    width: 9px;
    height: 9px;
    background: red;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text);
}

.profile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-info strong {
    font-size: 12px;
}

.profile-info small {
    font-size: 10px;
    color: #777;
}

.profile-btn > i {
    font-size: 12px;
}

.notification-popup, .profile-dropdown {
    display: none;
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 35px #001e5020;
    z-index: 30;
    animation: popup .25s ease;
}

.notification-popup {
    width: 280px;
    top: 50px;
    right: 140px;
}

.notification-popup h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.notification-item > i {
    color: #0754c9;
    margin-top: 3px;
}

.notification-item b {
    font-size: 11px;
}

.notification-item p {
    font-size: 10px;
    color: #777;
}

.profile-dropdown {
    top: 55px;
    right: 0;
    width: 180px;
}

.profile-dropdown a {
    display: block;
    color: #24365e;
    text-decoration: none;
    padding: 10px;
    font-size: 12px;
    border-radius: 6px;
}

.profile-dropdown a:hover {
    background: #f0f5ff;
}

.profile-dropdown i {
    width: 22px;
}

/* CONTENT */
.content-area {
    padding: 15px 0 0;
}

.welcome-banner {
    background: linear-gradient(110deg, #0752c5, #007bdc 65%, #ff8500);
    min-height: 175px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 35px;
    color: white;
    box-shadow: 0 7px 20px #0754c930;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: #c9e5ff;
    font-weight: 700;
}

.welcome-content h1 {
    font-size: clamp(21px, 2.5vw, 29px);
    font-weight: 800;
    margin: 6px 0;
}

.welcome-content p {
    font-size: 14px;
    line-height: 1.8;
}

.banner-btn {
    margin-top: 12px;
    padding: 9px 16px;
    background: var(--orange);
    color: white;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    transition: .3s;
}

.banner-btn:hover {
    transform: translateY(-3px);
    background: #ff6b00;
}

.banner-art {
    position: absolute;
    right: 5%;
    bottom: 0;
    height: 100%;
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-circle {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: #ffffff20;
    border: 1px solid #ffffff50;
    animation: pulseCircle 4s infinite;
}

.student-illustration {
    font-size: 115px;
    position: relative;
    z-index: 2;
    animation: studentFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 8px #001a4b40);
}

.floating-card {
    position: absolute;
    bottom: 18px;
    right: 5px;
    background: white;
    color: #0754c9;
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
    animation: studentFloat 3s infinite;
}

.floating-card i {
    color: #ff9200;
}

@keyframes pulseCircle {
    50% { transform: scale(1.12); opacity: .7; }
}

@keyframes studentFloat {
    50% { transform: translateY(-10px); }
}

/* STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px 8px;
    text-align: center;
    border: 1px solid #e7efff;
    box-shadow: 0 3px 10px #12366d10;
    transition: .3s;
    animation: fadeUp .7s both;
}

.stat-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 22px #0754c925;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.stat-icon.blue { color: #0872df; }
.stat-icon.green { color: #13b875; }
.stat-icon.orange { color: #ff9d00; }
.stat-icon.red { color: #ff5555; }

.stat-card h2 {
    font-size: 21px;
    font-weight: 800;
    color: #10295c;
}

.stat-card p {
    font-size: 11px;
    font-weight: 600;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PANELS */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
}

.panel {
    background: white;
    border: 1px solid #e6edfb;
    border-radius: 13px;
    padding: 17px;
    box-shadow: 0 3px 12px #15396c0c;
    transition: .3s;
}

.panel:hover {
    box-shadow: 0 7px 20px #15396c16;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading h2 {
    font-size: 15px;
    font-weight: 800;
}

.view-all {
    font-size: 10px;
    text-decoration: none;
    color: #0754c9;
    font-weight: 700;
}

.course-content {
    display: flex;
    gap: 13px;
    align-items: center;
}

.course-image {
    width: 110px;
    min-width: 110px;
    height: 95px;
    border-radius: 9px;
    background: linear-gradient(135deg, #031b52, #0877d7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-image i {
    font-size: 38px;
    color: #50cfff;
    z-index: 1;
}

.course-image span {
    font-weight: 800;
    font-size: 12px;
}

.course-details {
    flex: 1;
    min-width: 0;
}

.course-details h3 {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 9px;
    color: #66718d;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
}

.progress-track {
    height: 8px;
    background: #e6edf9;
    border-radius: 20px;
    overflow: hidden;
    flex: 1;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #08b86e, #22dc8b);
    transition: width 1.5s ease;
}

.progress-info strong {
    font-size: 10px;
}

.continue-btn {
    background: linear-gradient(90deg, #ff9000, #ff5900);
    color: white;
    padding: 8px 15px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 7px;
    transition: .3s;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px #ff800050;
}

/* QUICK ACTIONS */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-action {
    min-height: 94px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    font-size: 10px;
    font-weight: 600;
    transition: .3s;
}

.quick-action i {
    font-size: 23px;
}

.quick-action:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 15px #102b4c15;
}

.purple { background: #edf4ff; color: #1264d8; }
.violet { background: #f3eaff; color: #9414d4; }
.green-bg { background: #e9fff0; color: #08a54d; }
.orange-bg { background: #fff1e2; color: #ff6b00; }

/* BOTTOM */

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.activity {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f6;
}

.activity-icon {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    display: grid;
    place-items: center;
}

.activity-icon.green {
    background: #e6fff0;
    color: #09aa5b;
}

.activity-icon.orange {
    background: #fff2e2;
    color: #ff8a00;
}

.activity b {
    font-size: 11px;
}

.activity p {
    font-size: 10px;
    color: #8992a5;
}

.motivation-panel {
    background: linear-gradient(130deg, #0754c9, #06265f);
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.motivation-icon {
    font-size: 28px;
    animation: studentFloat 3s infinite;
}

.motivation-panel h2 {
    font-size: 16px;
    margin: 8px 0;
}

.motivation-panel p {
    font-size: 11px;
    color: #d5e5ff;
}

.motivation-panel button {
    background: #ff8c00;
    color: white;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 12px;
}

footer {
    padding: 20px 5px;
    color: #8993a8;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* TOAST */

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #082b68;
    color: white;
    padding: 13px 20px;
    border-radius: 9px;
    box-shadow: 0 8px 25px #001b5030;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    z-index: 100;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: .3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast i {
    color: #38df91;
}

.mobile-menu {
    display: none;
    color: #0754c9;
    background: transparent;
    font-size: 21px;
}

/* RESPONSIVE */

@media(max-width: 1100px) {
    .sidebar {
        width: 205px;
        min-width: 205px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 700px) {

    .dashboard-wrapper {
        padding: 8px;
        gap: 0;
    }

    .sidebar {
        position: fixed;
        z-index: 50;
        left: -260px;
        top: 8px;
        bottom: 8px;
        width: 240px;
    }

    .sidebar.open {
        left: 8px;
    }

    .main-content {
        width: 100%;
    }

    .topbar {
        height: 58px;
        padding: 8px 12px;
    }

    .mobile-menu {
        display: block;
    }

    .top-logo {
        display: block;
        width: 130px;
        margin-left: 10px;
    }

    .top-logo img {
        width: 100%;
    }

    .topbar-right {
        gap: 10px;
    }

    .profile-info {
        display: none;
    }

    .profile-avatar {
        width: 33px;
        height: 33px;
    }

    .welcome-banner {
        min-height: 175px;
        padding: 18px;
    }

    .welcome-content h1 {
        font-size: 19px;
    }

    .welcome-content p {
        font-size: 11px;
    }

    .welcome-label {
        font-size: 8px;
    }

    .banner-art {
        opacity: .45;
        right: -20px;
        width: 40%;
    }

    .student-illustration {
        font-size: 85px;
    }

    .banner-circle {
        width: 150px;
        height: 150px;
    }

    .floating-card {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .stat-card:last-child {
        grid-column: span 2;
    }

    .stat-card {
        padding: 12px 5px;
    }

    .stat-card h2 {
        font-size: 19px;
    }

    .stat-card p {
        font-size: 10px;
    }

    .dashboard-grid, .bottom-grid {
        grid-template-columns: 1fr;
    }

    .course-content {
        align-items: flex-start;
    }

    .course-image {
        width: 85px;
        min-width: 85px;
        height: 90px;
    }

    .course-details h3 {
        font-size: 11px;
    }

    .quick-action {
        min-height: 85px;
        font-size: 9px;
    }

    .quick-action i {
        font-size: 20px;
    }

    .panel {
        padding: 13px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .notification-popup {
        right: 0;
    }
}

@media(max-width: 380px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-image {
        display: none;
    }
}