:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  --color-red: #f55553;
  --color-green: #c6ff68;
  --color-lightgrey: #d9d9d9;

  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-xxl: 2rem;  
}

* {
  box-sizing: border-box;
}

html, body, header, button{
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

button{
    font-size: var(--font-md);
}

a{
    text-decoration: none;
    color: black;
}

a:hover{
    cursor: pointer;
}

p{
    margin: 0;
}

select, option, input{
    font-size: var(--font-md);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

select{
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.generic-button{
    text-decoration: none;
    align-self: center;

    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    background-color: var(--color-green);
    padding: var(--space-sm) var(--space-lg);
}

.generic-input{
    font-size: var(--font-lg);

    border-radius: 4px;
    border: 2px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.generic-button:hover{
    cursor: pointer;
}

body{
    height: 100%;
    padding-top: 6vh;
}

header{
    width: 100%;
    height: 6vh;

    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: end;

    border: solid #000;
    border-width: 0px 0px 2px 0px;

    background-color: white;

    z-index: 2;
}

.header-item{
    width: 100px;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: var(--font-lg);
}

#vertical-spacer{
    width: 2px;
    height: 75%;
    
    background-color: black;
    align-self: center;
}


/* REPORTS PAGE */

.reports-header > div{
    width: 100%;

    font-size: var(--font-lg);
}

.reports-header p{
    margin: 0;
}

.report-list{
    display: none;
    flex-direction: column;
}

#pending-header{
    display: flex;
    align-items: center;
    gap: var(--space-sm);

    padding: var(--space-md);

    background-color: var(--color-red);
}

#closed-header{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);

    background-color: var(--color-green);
}

#reports-container{
    margin-top: var(--space-xl);
    margin-left: 10%;
    width: 80%;

    display: flex;
    flex-direction: column;
    align-items: center stretch;
    gap: var(--space-xl);
    
    font-size: var(--font-lg);
}

.expand-arrow{
    width: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.report-entry{
    display: flex;
    flex-direction: column;

    border: 2px solid black;
    border-top: 0px;

    background-color: var(--color-lightgrey);
}

.report-entry-header{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: var(--space-md);
}

.report-entry-body{
    display: none;
    flex-direction: column;
}

.hidden{
    display: none !important;
}

.visible{
    display: flex !important;
}

.flex-visible{
    display: flex !important;
}

.ban-verdict{
    color: var(--color-red);
    font-style: italic;
}

.report-entry-information{
    background: white;

    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-lg);
}

.report-entry-original-content{
    padding: var(--space-md);
}

.italics-paragraph{
    font-style: italic;
    text-indent: 2rem;
}

.report-entry-description{
    padding: 0 var(--space-md) var(--space-md);
}

.report-entry-verdict-button{
    align-self: flex-end;
    justify-self: flex-end;

    margin: 0 var(--space-md) var(--space-md);

    background-color: var(--color-red);
}

#ban-user-button{
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    background: var(--color-red);
}

#report-overlay{
    position: fixed;
    left: 0;
    top: 0;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    /* background: rgba(0, 0, 0, 0.6); */
    z-index: 1;
}

#report-popup{
    background: white;

    display: flex;
    flex-direction: column;
    /* gap: var(--space-md); */

    width: 50%;
    padding: var(--space-lg);
    border-radius: 4px;

    z-index: 2;
}

#cancel-area{
    position: fixed;
    left: 0;
    top: 0;
    
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
}

#reported-user-information{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-sm);

    padding: var(--space-sm);
    border-radius: 100px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

    background: var(--color-lightgrey);
}

#report-configuration-container{
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.profile-picture{
    width: 60px;
    border-radius: 100px;
    background: var(--color-lightgrey);
}

.ban-setting{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#error-message{
    display: none;
    margin-top: var(--space-sm);
    font-style: italic;
    color: var(--color-red);
    text-indent: 2rem;
}

#loading-overlay{
    width: 100%;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: var(--font-lg);
}

.user-ban-history{
    margin-bottom: var(--space-md);
}

.user-ban-history > p{
    padding-left: var(--space-md);
}

.ban-history-entry-container{
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);

    overflow-y: scroll;
    max-height: 15vh;
    background: white;
}

.ban-history-entry-date{
    flex: 0.5;
}

.ban-history-entry-reason{
    flex: 1;
}

.ban-history-entry-duration{
    flex: 1;
}

.ban-history-entry{
    width: 40%;
    display: flex;
    flex-direction: row;
}

.highlight{
    color: var(--color-red);
}


/*MAIN PAGE*/

#main-content{
    display: flex;
    flex-direction: column;
    gap: var(--space-md);

    width: 80%;
    margin-top: var(--space-xl);
    margin-left: 10%;

    font-size: var(--font-lg)
}

#user-table-actions{
    display: flex;
    justify-content: flex-end;
    
    padding: 0 var(--space-md);
}

#left-side-actions{
    display: none;
    position: relative;
    gap: var(--space-md);
}

#search-button{
    padding: var(--space-sm);
}

#search-action{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

#user-table{
    border: 2px solid black;
    display: flex;
    flex-direction: column;
}

#user-table-header{
    display: flex;
    justify-content: space-between;
    
    padding: var(--space-md);
    border-bottom: 2px solid black;
}

#user-table-header > p{
    flex: 1;
}

.user{
    display: flex;
    justify-content: space-between;
    
    padding: var(--space-md);
}

.user > p{
    flex: 1;
}

.user:nth-child(odd){
    background: var(--color-lightgrey);
}

.action{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.action > img{
    width: 24px;
}

#page-controls{
    display: flex;
    align-items: center;
    gap: var(--space-sm);

    align-self: center;
}

#page-controls > button{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;
}

#sort-menu{
    position: absolute;
    top: 20px;

    border: 2px solid black;
    border-radius: 8px;

    padding: var(--space-sm) var(--space-md);
    
    background: var(--color-lightgrey);
}


/*AUTHENTICATION PAGE*/

#authentication-page-body{
    display: flex;
    flex-direction: column;
    height: 100vh;

    align-items: center;
    justify-content: center;

    padding-top: 0;
}

#authentication-container{
    width: 50%;
    max-width: 800px;

    padding: var(--space-xl);
    font-size: var(--font-lg);

    background-color: var(--color-lightgrey);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#authentication-container > form{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#authentication-container input{
    margin-bottom: var(--space-lg);
}

#website-title{
    align-self: center;
    font-size: var(--font-xxl);
}