html {
    scroll-behavior: smooth;
    scrollbar-color: #1f2029 #14151d;
    scrollbar-width: thin;
}

header {
    background-color: #202020;
}

header ul {
    list-style-type: none;
    margin: 0;
    padding-left: 1rem;
    overflow: hidden;
}

header li {
    float: left;
}

header li a {
    display: block;
    color: hsla(0, 0%, 100%, .75);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Change the link color to #111 (black) on hover */
header li a:hover {
    color: hsla(0, 0%, 100%, .75);
    background-color: #111;
}

header .active {
    color: hsla(0, 0%, 100%, .75);
    background-color: #353434;
}

body {
    background-color: #2D3238;
    color: hsla(0, 0%, 100%, .75);
}

body h1 {
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-size: 2.255rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase
}

body h2 {
    text-align: center;
    color: rgab(255, 255, 255, .85);
    font-size: 2rem
}

body h3 {
    text-align: center;
    color: rgab(255, 255, 255, .85);
    font-size: 1.255rem
}

div a {
    color: hsla(0, 0%, 100%, .75);
    text-decoration: none;

}

a:hover {
    color: hsla(0, 0%, 75%, 0.75);

}

p {
    font-size: 20px;
}



.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    padding-top: 1px;
}

.grid-container > div {
    background-color: #333435;
    text-align: center;
    padding: 50px 0;
    font-size: 30px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-container>div>:hover {
    color:rgb(8, 5, 55);
}

.grid-container2 {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
    background-color: #1f2029;
    padding: 20px;
}

.grid-container2>div {
    background-color: #151a21;
    text-align: center;
    padding: 50px 0;
    font-size: 30px;
}

.grid-container3 {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    background-color: #1f2029;
    padding: 20px;
}

.grid-container3>div {
    background-color: #151a21;
    text-align: center;
    padding: 15px 15px;
    font-size: 30px;
}

.grid-container4 {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    background-color: #1f2029;
    padding: 20px;
}

.grid-container4>div {
    background-color: #151a21;
    text-align: center;
    padding: 15px 15px;
    font-size: 30px;
}

.role-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}

/* Role colors */
.role-user { border-left: 4px solid #6c757d; }
.role-staff { border-left: 4px solid #1E40FF; }
.role-admin { border-left: 4px solid #E53935; }
.role-superadmin { border-left: 4px solid #F59E0B; }

.role-general { border-left: 4px solid #7C3AED; }
.role-fleet { border-left: 4px solid #494c4e; }
.role-shock { border-left: 4px solid #d81512; }


.role-user .role-badge { background: #6c757d; }
.role-staff .role-badge { background: #1E40FF; }
.role-admin .role-badge { background: #E53935; }
.role-superadmin .role-badge { background: #F59E0B; }

.role-general .role-badge { background: #7C3AED; }
.role-fleet .role-badge { background: #494c4e; }
.role-shock .role-badge { background: #d81512; }

.vote-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.vote-plus {
    color: #d1e7dd;
    background-color: #0f5132;
    border-color: #198754;
}

.vote-zero {
    color: #fff3cd;
    background-color: #664d03;
    border-color: #ffc107;
}

.vote-negative {
    color: #f8d7da;
    background-color: #842029;
    border-color: #dc3545;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.centerT {
    margin-left: auto;
    margin-right: auto;
}

th,
td {
    padding: 15px;
}

.login,
.profile {
    width: 400px;
    background-color: #383C42;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100spx auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login h1,
.profile h1 {
    text-align: center;
    color: hsla(0, 0%, 100%, .75);
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}

.login form,
.profile a {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.login form label,
.profile span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #1773BA;
    color: #ffffff;
}

.login form input[type="password"],
.login form input[type="text"],
.login form input[type="date"],
.login form input[type="number"],
.profile p {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}

.login form input[type="checkbox"] {
    width: 45px;
    height: 45px;
}

.input-box {
    width: 310px;
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #dee0e4;
    background-color: #fff;
}

.input-box span {
    margin-left: 10px;
    color: #000;
}

.checkbox-box {
    justify-content: flex-start;
}

.login form input[type="submit"],
.profile a {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #1773BA;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}

.login form input[type="submit"]:hover,
.profile a:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}

.navtop {
    background-color: #2f3947;
    height: 60px;
    width: 100%;
    border: 0;
}

.navtop div {
    display: flex;
    margin: 0 auto;
    width: 1000px;
    height: 100%;
}

.navtop div h1,
.navtop div a {
    display: inline-flex;
    align-items: center;
}

.export-table .vote-column {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.navtop div h1 {    flex: 1;
    font-size: 24px;
    padding: 0;
    margin: 0;
    color: #eaebed;
    font-weight: normal;
}

.navtop div a {
    padding: 0 20px;
    text-decoration: none;
    color: #c1c4c8;
    font-weight: bold;
}

.navtop div a i {
    padding: 2px 8px 0 0;
}

.navtop div a:hover {
    color: #eaebed;
}

body.loggedin {
    background-color: #f3f4f7;
}

.content {
    width: 1000px;
    margin: 0 auto;
}

.content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 22px;
    border-bottom: 1px solid #e0e0e3;
    color: #4a536e;
}

.content>p,
.content>div {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    margin: 25px 0;
    padding: 25px;
    background-color: #fff;
}

.content>p table td,
.content>div table td {
    padding: 5px;
}

.content>p table td:first-child,
.content>div table td:first-child {
    font-weight: bold;
    color: #4a536e;
    padding-right: 15px;
}

.content>div p {
    padding: 5px;
    margin: 0 0 10px 0;
}



.register {
    width: 400px;
    background-color: #383C42;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
    margin: 100px auto;
}

.register h1 {
    text-align: center;
    color: hsla(0, 0%, 100%, .75);
    ;
    font-size: 24px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #dee0e4;
}

.register form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.register form label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #1773BA;
    color: #ffffff;
}

.register form input[type="password"],
.register form input[type="text"],
.register form input[type="email"],
.register form select {
    width: 310px;
    height: 50px;
    border: 1px solid #dee0e4;
    margin-bottom: 20px;
    padding: 0 15px;
}

.register form input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #1773BA;
    border: 0;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s;
}

.register form input[type="submit"]:hover {
    background-color: #2868c7;
    transition: background-color 0.2s;
}