/* ============================================================
   SwiftCalculators.net — CSS Reset
   Purpose: Browser default styles hata ke clean slate banao
   ============================================================ */

/* Box sizing — har element ke liye border-box */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root font size */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Form elements font inherit */
input, button, textarea, select {
  font: inherit;
}

/* Headings — no default bold weirdness */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
}

/* Paragraph overflow */
p {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Table */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Button reset */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Fieldset */
fieldset {
  border: none;
}

/* Remove default number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Remove search input default styles */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* Hidden attribute */
[hidden] {
  display: none !important;
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--primary, #4F46E5);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: var(--primary, #4F46E5);
  color: #ffffff;
}
