/* RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* BASIC STYLE */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Sora-Regular';
    src: url('../fonts/Sora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('../fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

html, body {
	width: 100%;
	margin: 0;
	height: 100%;
	font-family: "Quicksand", sans-serif;
	font-size: 16px;
	background-color: #121212;
	color: #e0e0e0;
	overflow-x: hidden;
}

.wrapper {
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
    	box-sizing: border-box;
}

.container {
	background-color: #1e1e1e;
	padding: 40px 40px 0 40px;
	border-radius: 10px;
	max-width: 700px;
	width: 100%;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
html, body {
	font-size: 18px;
}

.wrapper {
	background: #1e1e1e;	
}

.container {
	border: 0;
    padding: 0px;
    box-shadow: none;
}
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.logo-img {
    height: 60px;  /* ✅ Set logo height */
    width: auto;    /* ✅ Keeps aspect ratio */
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 80px;  /* Smaller on mobile */
    }
}

/* COLOURS BEGIN */
h2 {
	color: #ffffff;
}

h3 {
    font-family: 'Sora-Regular';
    font-size: 20px !important;
	color: #ffffff;
}

.page-title {
    font-size: 28px !important;
	color: #ffffff;
	text-transform: lowercase;
}

.page-title::first-letter {
	color: #00b6ff;
}

.page-nav {
	margin-bottom: 30px;
}

h4 {
	color: #00c6b6;
}


p {
	color: #bbd1ef;
}


a {
	color: #9379a4;
}


form input[type="text"],
form input[type="password"] {
	border: 1px solid #444;
	background-color: #2e2e2e;
	color: #fff;
}

form textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 0px solid #ccc;
  border-radius: 4px;
  background: #2e2e2e;
  font-size: 16px;
  resize: none;
  color: #ffffff;
}

form input:focus {
	border-color: #8488f9;
	background-color: #333;
}

form textarea:focus { 
        outline: 1 !important;
        border-color: #8488f9;
        box-shadow: 0 0 1px 0a12fb;
}
    }

form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2e2e2e inset !important;
    -webkit-text-fill-color: #ffffff !important;
}


form button {
	background-color: #29435C;
	color: white;
	transition: background-color 0.3s ease;
	margin-top: 40px;
	margin-bottom: 50px;
}

form button:hover {
	background-color: #536e89;
}

.option-box {
	background: #2a2a2a;
	border: 2px solid #444;  /* Fixed border */
	transition: outline-color 0.3s ease;
}

body.light-mode .option-box {
	background: #ffffff;
	color: 000000;
}

.option-box:hover {
	outline: 2px solid #64b5f6; /* Outline does not affect layout */
}

select {
	color: #fff;
	background-color: #2e2e2e;
	border: 1px solid #444;
}

select:focus {
	background-color: #333;
}

#timer {
	color: #ffcccb;
}

.feedback-box {
	background: #1e1e1e;
	border: 2px solid #333;
}

.score-box {
	background: #1e1e1e;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

p[style*="color:red"],
p[style*="color:green"] {
	font-weight: 600;
	padding: 10px;
	border-radius: 6px;
	margin-top: 10px;
}

p[style*="color:red"] {
	background-color: #3b1c1c;
}

p[style*="color:green"] {
	background-color: #1c3b2b;
}

table {
	background-color: #2b2b2b;
	color: #ffffff;
}

table thead {
	background-color: #333;
}

table th,
table td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table tr:nth-child(even) {
	background-color: rgba(255,255,255,0.05);
}

table tr:hover {
	background-color: rgba(255,255,255,0.1);
	transition: background 0.3s ease;
}

.icon-link a {
	color: #8488f9;
}


h3 {
	font-size: 24px;
	margin-bottom: 50px;
}

h3::first-letter {
	font-size: 36px;
}

h4 {
	font-size: 20px;
	margin-bottom: 10px;
}

h2 {
	font-size: 20px;
	margin: 15px 0;
}

p {
	margin-bottom: 10px;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
h3 {
    font-size: 24px;
}
  
h2 {
    font-size: 18px;
}

p, a {
    font-size: 18px;
    margin-bottom: 20px;
}

button {
   font-size: 15px;
   padding: 10px;
   margin: 40px 0 50px 0;
}

.quiz-form label {
    font-family: 'Sora-Regular';
        display: block;
        margin-bottom: 10px; /* reduced gap between label & input */
    }

.quiz-form input[type="text"],
.quiz-form input[type="password"] {
        margin-bottom: 20px; /* reduced space between inputs */
    }


}

/* LOGIN FORM STYLING */
form {
	margin: 50px 0 50px 0;
}

form label {
    font-family: 'Sora-Regular';
    font-size: 16px !important;
	margin-bottom: 10px;
	display: block;
}

form input[type="text"],
form input[type="password"] {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border-radius: 6px;
	font-size: 16px;
}

form button {
	width: 100%;
	padding: 12px;
	font-size: 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.option-box {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 10px;
	border-radius: 5px;
	box-sizing: border-box;
	cursor: pointer;
}

.option-box input[type="radio"] {
	flex-shrink: 0;
}

/* SELECT DROPDOWN STYLING */
select {
	width: 100%;
	padding: 10px;
	font-size: 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	appearance: none; /* Removes native dropdown styling */
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'14'%20height%3D'10'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20fill%3D'%23ffffff'%20d%3D'M1%200l6%206%206-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
}

/* On focus */
select:focus {
	outline: none;
}

/* For better mobile appearance */
@media screen and (max-width: 600px) {
select {
    font-size: 16px;
    padding: 12px;
  }
}


#timer {
	font-size: 18px;
	margin-bottom: 10px;
}

.feedback-box {
	border-radius: 10px;
	padding: 20px;
	margin: 20px 0;
}

.score-box {
	padding: 30px;
	border-radius: 10px;
	text-align: center;
}

/* TABLE WRAPPER FOR RESPONSIVENESS */
.table-responsive {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 30px;
}

/* TABLE WRAPPER FOR SMALL SCREENS */
.responsive-table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 20px;
}

/* BASIC TABLE STYLING */
table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 6px;
	overflow: hidden;
	font-size: 14px;
	min-width: 600px; /* ensures scroll on smaller screens */
}

table th,
table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	white-space: nowrap;
}

.icon-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-weight: 600;
}

.icon-link i {
	width: 20px;
	height: 20px;
	stroke-width: 1.8;
}

.icon-heading i {
	width: 1.2em;
	height: 1.2em;
	vertical-align: middle;
	stroke-width: 2;
}

.icon-heading {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.icon-inline {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	vertical-align: middle;
	stroke-width: 2;
	margin-right: 8px;
	position: relative;
	top: -0.05em; /* fine-tune this for perfect alignment */
}

@media (max-width: 768px) {
.option-box {
    font-size: 18px;
    padding: 10px;
    margin-bottom: 20px;
}

.option-box input[type="radio"] {
    margin-right: 10px;
}
}


/* ✅ Light Mode overrides */
body.light-mode {
    background: #565555;
    color: #000;
}

body.light-mode .wrapper {
    background: #565555;
    color: #000;
}

@media (max-width: 768px) {
body.light-mode .wrapper {
    background: #c6cae6;
}
}

body.light-mode .container {
    background: #c6cae6;
    color: #000;
}

body.light-mode input,
body.light-mode button,
body.light-mode select,
body.light-mode textarea {
    background: #fff;
    color: #000;
    border: 1px solid #a0a0a0;
}

body.light-mode p {
    color: #000000;
}

body.light-mode h1 {
    color: ##2b3046;
}

body.light-mode h2 {
    color: #000000;
}

body.light-mode h3 {
    color: #000000;
}

body.light-mode h4 {
    color: #000000;
}

body.light-mode form label {
    color: #000000;
}

body.light-mode a {
    color: #000000;
}

.header-with-toggle {
    display: flex;
    justify-content: space-between; /* pushes left and right apart */
    align-items: flex-start;        /* top alignment */
    width: 100%;
}

.theme-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* aligns text to the right */
}

.theme-top {
    display: flex;
    align-items: center; /* keeps icon & text in one line */
    gap: 5px;            /* space between icon & text */
}

.theme-toggle {
    width: 25px;
    vertical-align: top;
}

.theme-text {
    font-size: 10px;
    font-weight: normal;
}

.login-text {
    font-size: 14px;
    margin-top: 2px;
    text-align: right;
}

.dashboard-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin: 30px 0 50px 0;
    text-align: center;
}

.dashboard-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  /* ✅ Pushes content to top */
    background: inherit;
    padding: 15px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    line-height: 1.2;
    transition: 0.3s;
    min-height: 120px;            /* ✅ Ensures top alignment is visible */
}
.dashboard-menu a:hover {
    border: 1px solid #8488f9;
}

body.light-mode .dashboard-menu a:hover {
    border: 2px solid #000000;
}
.dashboard-menu svg {
    display: block;
    margin-bottom: 5px;
}

        @media (max-width: 768px) {
            .dashboard-menu {
                grid-template-columns: repeat(3, 1fr); /* ✅ 3 columns on mobile */
            }
        }

    /* ✅ Footer Style */
    .footer {
        text-align: center;
        padding: 15px 10px;
        margin-top: 40px;
        font-size: 14px;
        color: #bbb;
        border-top: 1px solid #444;
        border-radius: 4px;
    }
    .footer a {
        color: #4a90e2;
        text-decoration: none;
    }
    .footer a:hover {
        text-decoration: underline;
    }
    
ul {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}