/**
 * ExamBlaze CSS Reset
 * Modern CSS reset and normalization
 * 
 * @package ExamBlaze
 * @version 1.0
 */

/* ========================================
   BOX SIZING
   ======================================== */

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

/* ========================================
   HTML & BODY
   ======================================== */

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    text-rendering: optimizeSpeed;
    overflow-x: hidden;
    background-color: var(--bg-light);
    /* Global Dark Background */
    color: var(--text-dark);
    /* Global Light Text */
}

/* ========================================
   HEADINGS
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1.2;
}

/* ========================================
   TEXT ELEMENTS
   ======================================== */

p,
span,
div {
    margin: 0;
    padding: 0;
}

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

a:hover {
    text-decoration: none;
}

strong,
b {
    font-weight: 700;
}

em,
i {
    font-style: italic;
}

small {
    font-size: 80%;
}

/* ========================================
   LISTS
   ======================================== */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    margin: 0;
    padding: 0;
}

/* ========================================
   IMAGES & MEDIA
   ======================================== */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    border-style: none;
    vertical-align: middle;
}

/* ========================================
   FORMS
   ======================================== */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: none;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

textarea {
    overflow: auto;
    resize: vertical;
}

input[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="checkbox"],
input[type="radio"] {
    padding: 0;
}

/* ========================================
   TABLES
   ======================================== */

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

th,
td {
    padding: 0;
    text-align: left;
}

/* ========================================
   MISC ELEMENTS
   ======================================== */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
    display: table;
    max-width: 100%;
    white-space: normal;
    color: inherit;
}

progress {
    vertical-align: baseline;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template,
[hidden] {
    display: none;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 0;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Remove all animations and transitions for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   FOCUS STATES
   ======================================== */

:focus {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
    background-color: #f59e0b;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #f59e0b;
    color: #FFFFFF;
}

/* ========================================
   SCROLLBAR (Webkit browsers)
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.no-scroll {
    overflow: hidden;
}