html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  font-family: 'Roboto Mono', monospace;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}


@font-face {
  font-family: 'Silkscreen';
  src: url('../fonts/Silkscreen/Silkscreen-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Silkscreen-bold';
  src: url('../fonts/Silkscreen/Silkscreen-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Audiowide';
  src: url('../fonts/Audiowide/Audiowide-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Mono';
  src: url('../fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --primary-color: #78141E;
  --secondary-color: #FAC263;
  --background-color: #232428;
  --text-color: #FCF3C8;
  --secondary-text-color: #B8B8B8;
  --minor-text-color: #FFFFFF;
  --accent-color: #2D435B;
  --sidebar-bg: #1a1b1f;
  --card-bg: #2a2b30;
  --hover-bg: #33343a;
  --blue-accent: #4F9EF8;
  --green-accent: #4CAF50;
  --yellow-accent: #FFC107;
  --red-accent: #B8342C;
}

/* Modal Global Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border: 1px solid rgba(250, 192, 99, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.modal .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal .form-header h2 {
    font-family: 'Audiowide', cursive;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.modal .form-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal .form-header button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal .information {
    padding: 2rem;
}

.modal .form-actions.btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.modal .cancel-btn,
.modal .save-btn {
    height: 44px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s;
}

.modal .save-btn {
    background-color: var(--secondary-color);
    color: #000;
    border: none;
}

.modal .save-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 194, 99, 0.3);
}

.modal .cancel-btn {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--secondary-text-color);
}

.modal .cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-text-color);
    color: var(--text-color);
}

/* Specific Confirmation Modal Styles */
#confirmation-modal #modal-confirm-btn {
    background-color: var(--red-accent);
    color: var(--minor-text-color);
}

#confirmation-modal #modal-confirm-btn:hover {
    box-shadow: 0 4px 12px rgba(184, 52, 44, 0.4);
}

main {
  display: flex;
  flex-direction: column;
  gap: 150px;
  margin-top: 150px;
  margin-bottom: 100px;
}


@media (max-width: 1024px) {
  main {
    margin-top: 120px;
  }
}

@media (max-width: 768px) {
  main {
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  main {
    margin-top: 40px;
  }
}