@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
  background-color: #121212;
  color: #E5E7EB;
  font-family: 'Open Sans', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

a {
	text-decoration: none;
	color: inherit;
}

.header {
  background: linear-gradient(90deg, #1E1E1E, #2C2C54);
  color: #E5E7EB;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header h1 {
	margin: 0;
	user-select: none;
	font-size: 1.5em;
}

.header img {
	height: 40px;
}

.header p {
	font-size: 20px;
	text-decoration: underline;
	cursor: pointer;
	transition: all ease .2s;
}

.header p:hover {
	font-weight: bold;
	text-decoration: none;
}

.dashboard-container {
	padding: 20px;
}

.dashboard-container h2 {
    margin: 0;
    margin-bottom: 20px;
}

.separator {
    border-bottom: solid 2px rgba(255, 255, 255, 0.2);
    width: 80%;
    margin: auto;
}

.docs-container,
.service-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.docs-card,
.service-card {
    width: 100%;
    max-width: 33%;
}

.docs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	gap: 25px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.service-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	gap: 25px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
	user-select: none;
}

.service-card .service-name {
    text-transform: capitalize;
    position: relative;
    padding-left: 1.5rem;
    font-size: 18px;
    font-weight: bold;
}

.service-card .service-name::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f013";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #4F46E5;
}

.service-card .online,
.service-card .offline {
    position: relative;
}

.service-card .online::before,
.service-card .offline::before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    border-radius: 50%;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.service-card .online::before{
    background: green;
}

.service-card .offline::before {
    background: red;
}

.docs-card-disabled {
  background: #374151;
  color: #9CA3AF;
  cursor: not-allowed;
}

.docs-card-disabled::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f023";
	position: absolute;
	inset: -2px;
	width: 100%;
	height: 100%;
	cursor: not-allowed;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 100px;
	background-color: #222;
	opacity: .5;
}

.docs-card::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: linear-gradient(45deg, #3c8e2a, #c084fc);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
	border-radius: 16px;
}

.docs-card:hover:not(.docs-card-disabled) {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 10px 20px #4F46E540;
	border-color: #4F46E5;
}

.docs-card:hover::before:not(.docs-card-disabled) {
	opacity: 0.3;
}

.docs-card .icon-container {
	display: flex;
	gap: 20px;
	background-color: rgba(0, 0, 0, 0.25);
	width: 100%;
	padding: 30px;
	justify-content: center;
	border-radius: 16px;
}

.docs-card i {
	font-size: 90px;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
	font-style: normal;
	color: #00fddc;
}

.docs-card:first-child i {
	color: #a3ff12;
}

.docs-card:last-child i {
	color: #ff6738;
}

.docs-card p {
	margin: 0;
	margin-top: 10px;
	font-size: 1.1rem;
	font-weight: 500;
	color: #e0e0e0;
}

.docs-card:hover:not(.docs-card-disabled) p {
	font-weight: bold;
}

.section-404 {
    margin-top: 50px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.section-404 p {
	margin: 0;
	user-select: none;
}

.section-404 a {
	cursor: pointer;
	background-color: #3c8e2a;
	color: #ffffff;
	border: 1px solid #2a631c;
	border-radius: 100px;
	padding: 8px 15px
}

.section-404 a:hover {
	background-color: #4caf3f;
	box-shadow: 0 0 8px #3c8e2a;
}

.login-form-overlay {
	position: absolute;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	display: none;
	justify-content: center;
	align-items: center;
	padding: 40px;
    z-index: 10;
}

.login-form-modal {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	background-color: #ffffff;
	border-radius: 12px;
	position: relative;
	padding: 40px 50px;
	color: #222;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	max-width: 500px;
}

.login-logo {
	height: 60px;
	margin: auto;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.login-form legend {
	font-size: 25px;
	user-select: none;
	font-weight: bold;
	margin: auto;
}

.login-form label {
	font-size: 14px;
}

.input {
	margin-top: 5px;
	border: solid 1px #333;
	border-radius: 3px;
	padding: 5px 10px;
	display: flex;
	gap: 10px;
}

.input input {
	border: none;
	outline: none;
	background-color: transparent;
	width: 100%;
}

.error_message {
	margin: 0;
	opacity: 1;
	color: #F87171;
	font-size: 14px;
	transition: opacity .2s ease;
}

.hidden {
	opacity: 0;
}

.login-form button {
  background: #4F46E5;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.login-form button:hover {
  background: #4338CA;
}

#toast-container {
	position: fixed;
	top: 20px;
    right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: auto;
	max-width: 90%;
	align-items: center;
}

.toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: 8px;
	color: white;
	font-weight: 500;
	min-width: 240px;
	max-width: 320px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	animation: fadeIn 0.3s ease-in-out;
	position: relative;
}

.toast.success {
	background-color: #2ecc71;
}

.toast.error {
	background-color: #e74c3c;
}

.toast .fa-xmark {
	margin-left: auto;
	cursor: pointer;
	font-size: 1rem;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #16213e;
	/* scrollbar track */
}

::-webkit-scrollbar-thumb {
	background: #2a631c;
	/* scrollbar handle */
	border-radius: 8px;
	border: 2px solid #16213e;
}

::-webkit-scrollbar-thumb:hover {
	background: #3c8e2a;
}

/* Firefox Support */
* {
	scrollbar-width: thin;
	scrollbar-color: #2a631c #16213e;
}