/* CSS Reset - BlockDAG Dashboard v4 */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove margins and paddings */
* {
    margin: 0;
    padding: 0;
}

/* HTML and Body */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
    font-size: inherit;
}

p {
    margin: 0;
}

/* Lists */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Forms */
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
}

button:focus {
    outline: none;
}

input {
    border: none;
    outline: none;
    background: transparent;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

textarea {
    overflow: auto;
    resize: vertical;
}

select {
    border: none;
    outline: none;
    background: transparent;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

svg {
    display: block;
    overflow: visible;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
}

/* Others */
hr {
    margin: 0;
    border: 0;
    border-top: 1px solid;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

summary {
    display: list-item;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Selection */
::selection {
    background-color: rgba(74, 179, 255, 0.3);
    color: white;
}

::-moz-selection {
    background-color: rgba(74, 179, 255, 0.3);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 179, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 179, 255, 0.7);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary-light, #4ab3ff);
    outline-offset: 2px;
}

/* Disable focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}