
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f8fbff;
    color: #172033;
}

.inst-auth-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #d9efff, transparent 30%),
                radial-gradient(circle at bottom right, #ffe1f2, transparent 30%),
                linear-gradient(135deg, #ffffff, #f5f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inst-auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.94);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 25px 70px rgba(25, 110, 255, 0.15);
}

.inst-logo,
.inst-brand-icon,
.inst-avatar {
    background: linear-gradient(135deg, #2575fc, #ff4fa3);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inst-logo {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    margin: auto;
    font-size: 34px;
}

.inst-btn,
.inst-btn-sm {
    background: linear-gradient(135deg, #2575fc, #ff4fa3);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: 800;
}

.inst-btn {
    height: 52px;
}

.inst-btn-sm {
    padding: 9px 16px;
    font-size: 14px;
    text-decoration: none;
}

.inst-btn:hover,
.inst-btn-sm:hover {
    color: #fff;
    box-shadow: 0 12px 25px rgba(37, 117, 252, 0.22);
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 14px;
}

.inst-layout {
    display: flex;
    min-height: 100vh;
}

.inst-sidebar {
    width: 275px;
    background: linear-gradient(180deg, #0e1b3d, #2575fc, #ff4fa3);
    color: #fff;
    padding: 22px 16px;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    z-index: 999;
}

.inst-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.inst-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 24px;
}

.inst-brand h4 {
    margin: 0;
    font-weight: 900;
}

.inst-brand small {
    opacity: 0.8;
}

.inst-menu a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 15px;
    margin-bottom: 7px;
    font-weight: 600;
    transition: 0.25s ease;
}

.inst-menu a:hover,
.inst-menu a.active {
    background: rgba(255,255,255,0.22);
    transform: translateX(4px);
}

.inst-main {
    margin-left: 275px;
    width: calc(100% - 275px);
    padding: 24px;
}

.inst-topbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    padding: 18px 22px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(20, 60, 120, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inst-topbar h5 {
    font-weight: 900;
    margin: 0;
}

.inst-topbar small {
    color: #777;
}

.inst-menu-toggle {
    display: none;
    border: none;
    background: linear-gradient(135deg, #2575fc, #ff4fa3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 22px;
}

.inst-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.inst-stat-card {
    border-radius: 25px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #2575fc, #20c6ff);
    box-shadow: 0 15px 35px rgba(37, 117, 252, 0.20);
}

.inst-stat-card.purple {
    background: linear-gradient(135deg, #7b2cff, #b983ff);
}

.inst-stat-card.blue {
    background: linear-gradient(135deg, #12c99b, #0f9b7f);
}

.inst-stat-card.orange {
    background: linear-gradient(135deg, #ff9f43, #ff5e62);
}

.inst-stat-card i {
    font-size: 30px;
}

.inst-stat-card h3 {
    margin: 12px 0 0;
    font-size: 34px;
    font-weight: 900;
}

.inst-stat-card p {
    margin: 4px 0 0;
}

.inst-card {
    background: #fff;
    border-radius: 26px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(20, 60, 120, 0.08);
}

.inst-table thead th {
    background: #eef5ff;
    color: #172033;
    font-size: 14px;
    border-bottom: none;
}

.inst-table td,
.inst-table th {
    padding: 15px;
}

@media (max-width: 991px) {
    .inst-sidebar {
        left: -285px;
        transition: 0.3s ease;
    }

    .inst-sidebar.show {
        left: 0;
    }

    .inst-main {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    .inst-menu-toggle {
        display: block;
    }
}
.inst-profile-avatar {
    width: 110px;
    height: 110px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #2575fc, #ff4fa3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 900;
}
.inst-logo-preview {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #e4ecff;
}
