@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

::-webkit-scrollbar {
    width: 0.4em;
}
  
::-webkit-scrollbar-track {
    background-color: #34363d;
}

::-webkit-scrollbar-thumb {
    background-color: #dfdfdf;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a1a1a1;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #000;
    color: white;
    --background: #0c0c0c;
    --background-2: #1d1d1d;
    --background-3: #2c2c2c;
    --background-hover: #222222;
    --green: #28f30e;
    --hover: #2571ff;
    --border: #222222;
    --text: #535353;
    --text-hover: #aaaaaa;

    font-family: "Karla", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin: 0;
}

/*---------------------- NAV --------------------------------*/

.navbar {
    display: flex;
    align-items: center;
    height: 56px;
    background-color: var(--background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #ffffff;
    border-bottom: 1px solid var(--border);
}

.navbar .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 1em;
}

.navbar .logo {
    font-family: "Inter";
    font-weight: 600;
    font-style: normal;
    font-size: 1.5em;
    text-decoration: none;
    color: white;
    letter-spacing: 1px;
}

.search-button {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #ffffff82;
    transition: .2s;
}

.search-button:hover {
    fill: #fff;
}

.nav-items {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .content {
    position: relative;
}

.nav-items a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.nav-items a:hover {
    color: var(--text-hover);
}

/*---------------------- END NAV --------------------------------*/

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    margin: 0 auto;
    padding: 1em;
    max-width: 1200px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-radius: .5em;
    padding: 1em;
    background: var(--background);
    border: 1px solid var(--border);
}

h1,h2,h3,h4,h5,h6 {
	margin:0;
}

.container {
    width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.table {
	width: 100%;
	border: 1px solid #EEEEEE;
}

.table-header {
    font-family: "DM Serif Text";
	display: flex;
    justify-content: space-evenly;
	width: 100%;
	background: #000;
	padding: 18px 0;
    padding-left: 100px;
}

.table-row {
	display: flex;
    justify-content: space-between;
	width: 100%;

    &:nth-of-type(odd) {
		background:#f1f1f1;
	}
}

.table-row-data {
	display: flex;
    justify-content: space-evenly;
	width: 100%;
}

.table-data, .header__item {
    display: flex;
    align-items: center;
}

.table-data a {
    text-decoration: none;
    color: black;
    transition: .2s;
    font-weight: 600;
}

.table-data a:hover {
    text-decoration: underline;
    color: rgb(27, 80, 255);
}

.filter__link {
	color: white;
	text-decoration: none;
	position: relative;
	display: inline-block;
	padding-left: 24px;
	padding-right: 24px;
	
	&::after {
		content:'';
		position:absolute;
		right: -18px;
		color:white;
		font-size: 18px;
		top: 50%;
		transform: translateY(-50%);
	}
	
	&.desc::after {
		content: '(desc)';
	}

	&.asc::after {
		content: '(asc)';
	}
	
}

/*----------------------B----------------------*/

.image-container {
    position: relative;
    display: inline-block;
}

.face {
    width: 300px;
    height: 300px;
    border-radius: .2rem;
}

.crown {
    position: absolute;
    top: -90px;
    left: 49%;
    transform: translateX(-50%);
    height: 230px;
    width: auto;
    pointer-events: none;
    z-index: 10;
}

.profile {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.person {
    display: flex;
    gap: .5em;
}

.person .info {
	text-transform: capitalize;
    padding: .5em;
    display: flex;
    flex-direction: column;
}

.person .name {
    font-size: 2em;
    font-weight: 700;
}

.person .net-worth {
    font-size: 1.2em;
    font-weight: 400;
    color: var(--text);
}

.profile .data {
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: .75em;
    padding: .5em .75em 0 0;
}

.profile .data .item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.profile .data .item .key {
    font-size: 1em;
    margin-right: 2em;
    color: #bdbdbd;
}

.profile .data .item .value {
    font-weight: 300;
    text-align: right;
    color: var(--text);
}

.list {
    margin: .5rem 1.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-weight: 300;
}

/*------------------------ TABLE ----------------------------*/

table {
    width: 100%;
    text-align: center;
    border-spacing: 0;
    border-collapse: collapse;
    font-family: 'Karla';
    font-size: 14px;
}

.pic-row {
    padding: 0;
}

table img {
    display: block;
    width: 100px;
    height: 100px;
}

a.name {
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}

a.name:hover {
    text-decoration: underline;
    color: var(--text-hover);
}

thead th.sorting::after,
thead th.sorting_asc::after,
thead th.sorting_desc::after {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    color: var(--text);
    opacity: 0.6;
    pointer-events: none;
}

thead th.sorting::after {
    content: "⇅";
}

thead th.sorting_asc::after {
    content: "↑";
}

thead th.sorting_desc::after {
    content: "↓";
}

thead th:hover::after {
    opacity: 1;
}

td {
    color: var(--text);
}

thead th {
    cursor: pointer;
    position: relative;
    user-select: none;
    padding: 10px 20px;
    white-space: nowrap;
    background-color: #000000 !important;
    color: #8d8d8d !important;
    font-weight: bold;
    text-align: center;
}

.dataTables_filter label {
    position: relative;
}

div.dataTables_filter input {
    font-family: 'Karla' !important;
    color: #a8a8a8 !important;
    border: 1px solid var(--border) !important;
    background-color: var(--background-2) !important;
    border-radius: .2em !important;
    padding: 8px 30px !important;
    width: 300px !important;
    outline: none !important;
    margin-left: 0px !important;
    margin-bottom: .5em !important;
}

div.dataTables_filter input:focus {
    border: 1px solid #313131 !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

.dataTables_filter svg {
    position: absolute;
    top: 0;
    left: 5px;
    pointer-events: none;
    color: #777;
}

tbody tr.even {
    background-color: var(--background);
}

tbody tr.odd {
    background-color: var(--background-2);
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate {
    float: right;
    color: #fff !important;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    cursor: pointer;
    padding: .5rem 1rem;
    background-color: var(--background-2) !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover {
    background: var(--background-3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: var(--background-3) !important;
    color: white !important;
}

/*---------------------- Table 2 ----------------------*/

.table2.dataTable tbody td {
    padding: 10px 8px !important;
}

.tooltip {
    background-color: var(--background-2);
    font-family: 'Karla';
    color: #b8b8b8ff;
    font-size: .8rem;
    padding: .25rem .4rem;
    border-radius: .2rem;
    border: 1px solid var(--border);
}

/*------------------------ Inputs ----------------------------*/

.input-card {
    width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #0c0c0c;
    border: 1px solid #222;
    border-radius: 12px;
}

.card-title {
    font-family: 'Karla', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #e0e0e0;
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: 'Karla', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Karla', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #444;
}

.form-group input:focus {
    border-color: #2571ff;
}

.btn-primary {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.5rem;
    background: #2571ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Karla', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1a5cd6;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-message {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.form-message.success {
    background: rgba(25, 210, 73, 0.1);
    border: 1px solid rgba(25, 210, 73, 0.3);
    color: #19d249;
}

.form-message.error {
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ff3c3c;
}

/*------------------------ Account ----------------------------*/

.account-selector {
    position: relative;
}

.account-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.account-toggle:hover {
    border-color: #444;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.35rem;
    list-style: none;
    margin: 0;
    z-index: 100;
}

.account-dropdown li button {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 6px;
    color: #b8b8b8;
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.account-dropdown li button:hover {
    background: #1d1d1d;
    color: #e0e0e0;
}

.account-dropdown li button.active {
    color: #2571ff;
}

.no-accounts {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #555;
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
}