@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ----- ROOT VARIABLES ----- */
:root {
    --color-primary: #7380ec;
    --color-danger: #ff7782;
    --color-success: #1cc88f;
    --color-warning: #ffbb55;
    --color-white: #fff;
    --color-info-dark: #7d8da1;
    --color-info-light: #dce1eb;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-primary-variant: #111e88;
    --color-danger-variant: #ff4c57;
    --color-success-variant: #31f4c0;
    --color-warning-variant: #ff9f2c;
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;
    
    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;
    
    
    --card-padding: 1.8rem;
    --padding-1: 1.2rem;
    
    --box-shadow: 0 2rem 3rem var(--color-light);   
}

/* ----- DARK THEME VARIABLES ----- */
.dark-theme-variables {
    --color-background: #181a1e;
    --color-white: #202528;
    --color-dark: #edeffd;
    --color-dark-variant: #a3bdcc;
    --color-light: rgba(0, 0, 0, 0.4);
    --box-shadow: 0 2rem 3rem var (--color-light);
}

/* reset the basic so everything starts nice */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: none;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html{
    font-size: 14px;
}

/* main body styling */
body{
    width: 100vw;
    height: 100vh;
    font-family: poppins, sans-serif;
    font-size: 0.88rem;
    background: var(--color-background);
    user-select: none;
    overflow-x: hidden;
    color: var(--color-dark);
}

/* main layout is 3 columns: Sidebar | Main | Right */
.container{
    display: grid;
    width: 96%;
    margin: 0 auto;
    gap: 1.8rem;
    grid-template-columns: 14rem auto 23rem;
}
    
a {
    color: var(--color-dark);
}

img {
    display: block;
    width:100%;
}

/*heading sizes */
h1 {
    font-weight: 800;
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 0.87rem;
}

h4 {
    font-size: 0.8rem;
}

h5 {
    font-size: 0.77rem;
}

small {
    font-size: 0.75rem;
}

.profile-photo {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    overflow: hidden;
}

.text-muted {
    color: var(--color-info-dark);
}

p {
    color: var(--color-dark-variant);
}

b {
    color: var(--color-dark);
}

.primary {
    color: var(--color-primary);
}

.danger {
    color: var(--color-danger);
}

.success {
    color: var(--color-success);
}

.warning {
    color: var(--color-warning);
}

aside {
    height: 100vh;
}

/* top of sidebar with logo and close */
aside .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
}

aside.logo {
    display: flex;
    gap: 0.8rem;
}

aside .logo img {
    width: 2rem;
    height: 2rem;
}

aside .close {
    display: none;
}

/* reusable cards for pages */

.card {
    background: var(--color-white);
    padding: 1.4rem;
    border-radius: 1.2rem;
    box-shadow: var(--box-shadow);
    transition: all 300ms ease;
    margin-bottom: 2rem;
}

.card:hover {
    box-shadow: none;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--color-dark-variant);
    font-size: 0.95rem;
}

main h1 {
    margin-bottom: 1.5rem;
}

/* layout for right content */
.right .right-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;       
    margin-top: 2rem;  
}


main .container1 {
    overflow: hidden;
    align-items: center;
    width: 100%;
    height: 500px;
    margin: 8% auto;
    border-radius: 5px;
    position: relative;
}

main h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-dark);
}

main form {
    width: 100%;
    position: absolute;
    transition: 0.5s;
    align-items: center;    
}


main form input,
main form textarea {
    width: 100%;
    padding: 10px 5px;
    margin: 5px 0;
    border: 0;
    border-bottom: 1px solid var(--color-dark-variant);
    outline: none;
    background: transparent;
}

main .btn-box {
    width: 100%;
    margin: 30px auto;
    text-align: center;
}

main form button {
    width: 110px;
    height: 35px;
    margin: 0 10px;
    background: var(--color-primary);
    border-radius: 30px;
    border: 0;
    outline: none;
    color: var(--color-white);
    cursor: pointer;
}

/* layout for team profile pictures and cards */
.profile-card {
    display: grid;
    grid-template-columns: 2.6rem auto;
    align-items: center;  
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-photo img {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%; 
    object-fit: cover;
}

/* make chart canvas reposnsive */
.card canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
}




