body{
    margin:0;
    font-family:Arial,sans-serif;
}

/* HEADER */

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 20px;
    border-bottom:1px solid #ddd;
}

.title{
    font-size:18px;
    font-weight:600;
}

.auth-buttons{
    display:flex;
    gap:10px;
    align-items:center;
}

button{
    padding:8px 14px;
    border:1px solid #333;
    background:white;
    cursor:pointer;
}

button:hover{
    background:#f2f2f2;
}

/* MODAL */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:1000;
}

.modal{
    width:420px;
    max-width:90vw;
    background:white;
    border-radius:10px;
    padding:24px;
    box-sizing:border-box;
    box-shadow:0 10px 40px rgba(0,0,0,.25);
}

.close{
    float:right;
    border:none;
    background:none;
    font-size:20px;
    cursor:pointer;
}

.hidden{
    display:none;
}

.center{
    text-align:center;
}

.oauth-btn{
    width:100%;
    margin-bottom:10px;
}

.link-btn{
    border:none;
    background:none;
    color:#0066cc;
    cursor:pointer;
    padding:0;
}

    .user-button{
    border:none;
    background:none;
    padding:0;
    cursor:pointer;
    font:inherit;
}

.user-button:hover{
    text-decoration:underline;
}

    #userDropdown a:hover{
    background:#f5f5f5;
}
/* DASHBOARD */

.dashboard{
    width:100%;
    padding:20px;
    box-sizing:border-box;
}

.module-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:24px;
}

.module-card{
    height:160px;
    border:1px solid #ddd;
    border-radius:12px;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:20px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.module-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 20px rgba(0,0,0,.12);
}

#userDropdown a:hover{
    background:#f5f5f5;
}

#dashboard{
    display:none;
}

#contentArea{
    width:100%;
    overflow-x:auto;
    padding:20px;
    box-sizing:border-box;
}
        
.app-layout{
    display:flex;
    min-height:calc(100vh - 70px);
}

.sidebar{
    width:220px;
    background:#f5f7fa;
    border-right:1px solid #ddd;
    padding:20px;
    box-sizing:border-box;
}

.sidebar-title{
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;
}

.sidebar-btn{
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.main-content{
    flex:1;
    padding:20px;
}

#welcomePanel{
    background:white;
    border-radius:12px;
    padding:40px;
    margin:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

#welcomePanel h1{
    margin-top:0;
}
