/* Custom CSS to replace Bulma functionality */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Grid System */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.column {
  padding: 0 0.5rem;
  flex: 1;
}

.column.is-1 { flex: 0 8.3333%; }
.column.is-2 { flex: 0 0 16.6666%; }
.column.is-3 { flex: 0 0 25%; }
.column.is-4 { flex: 0 0 33.3333%; }
.column.is-5 { flex: 0 0 41.666%; }
.column.is-6 { flex: 0 0 50%; }
.column.is-7 { flex: 0 0 58.3333%; }
.column.is-8 { flex: 0 0 66.6666%; }
.column.is-9 { flex: 0 0 75%; }
.column.is-10 { flex: 0 0 83.3333%; }
.column.is-11 { flex: 0 0 91.666%; }
.column.is-12 { flex: 0 0 100%; }

/* For mobile */
@media screen and (max-width: 768px) {
  .column.is-full-mobile { flex: 0 0 100%; }
  .column.is-half-mobile { flex: 0 0 50%; }
}

/* Typography */
.title {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.title.is-1 { font-size: 3rem; }
.title.is-2 { font-size: 2.5rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }
.title.is-6 { font-size: 1rem; }

.subtitle {
  font-weight: 400;
  line-height: 1.4;
  color: #666;
}

.subtitle.is-1 { font-size: 3rem; }
.subtitle.is-2 { font-size: 2.5rem; }
.subtitle.is-3 { font-size: 2rem; }
.subtitle.is-4 { font-size: 1.5rem; }
.subtitle.is-5 { font-size: 1.25rem; }
.subtitle.is-6 { font-size: 1rem; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
}

.button.is-danger {
  background-color: #ff3860;
  color: white;
  border-color: #ff3860;
}

.button.is-danger:hover {
  background-color: #ff1a47;
  border-color: #ff1a47;
}

.button.is-light {
  background-color: #f5f5f5;
  color: #333;
  border-color: #dbdbdb;
}

.button.is-light:hover {
  background-color: #e8e8e8;
  border-color: #b5b5b5;
}

.button.is-info {
  background-color: #3273dc;
  color: white;
  border-color: #3273dc;
}

.button.is-info:hover {
  background-color: #2366d1;
  border-color: #2366d1;
}

.button.is-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.button.is-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
}

.button.is-fullwidth {
  width: 100%;
}

/* Forms */
.field {
  margin-bottom: 1rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.input, .textarea, .select select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: #3273dc;
  outline: none;
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

.select {
  position: relative;
  display: block;
}

.select select {
  appearance: none;
  background-color: white;
  padding-right: 2.5rem;
}

.select::after {
  content: "";
  position: absolute;
  right: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid transparent;
  border-top-color: #333;
  width: 0;
  height: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
  overflow: hidden;
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid #ededed;
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem;
  border-top: 1px solid #ededed;
  display: flex;
  justify-content: space-between;
}

.card-footer-item {
  padding: 0.5rem;
  text-align: center;
 flex: 1;
  text-decoration: none;
  color: #333;
}

.card-footer-item:not(:last-child) {
  border-right: 1px solid #dbdbdb;
}

/* Notifications */
.notification {
  padding: 1.25rem 2.5rem 1.25rem 1.5rem;
  position: relative;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.notification.is-danger {
  background-color: #ff3860;
  color: white;
}

.notification.is-info {
  background-color: #3273dc;
  color: white;
}

.notification.is-success {
  background-color: #48c774;
  color: white;
}

.notification.is-warning {
  background-color: #ffdd57;
  color: rgba(0, 0, 0, 0.7);
}

.delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background-color: rgba(10, 10, 10, 0.2);
  border: none;
  border-radius: 290486px;
  cursor: pointer;
}

.delete::before, .delete::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background-color: white;
  transform: translate(-50%, -50%) rotate(45deg);
}

.delete::after {
 transform: translate(-50%, -50%) rotate(-45deg);
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: 0 2px 0 0 #f5f5f5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 3.25rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
}

.navbar-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.navbar-item:hover {
  background-color: #f5f5f5;
}

.navbar-burger {
  display: none;
  cursor: pointer;
 width: 3rem;
  height: 3rem;
  position: relative;
}

.navbar-burger span {
  display: block;
  height: 2px;
  width: 20px;
  background-color: #333;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
  top: 50%;
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 8px);
}

.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

.navbar-end {
  display: flex;
  align-items: center;
}

/* Media query for mobile */
@media screen and (max-width: 1023px) {
  .navbar-burger {
    display: block;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(10, 10, 0.1);
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.table th, .table td {
  padding: 0.5rem;
  border-bottom: 1px solid #dbdbdb;
  text-align: left;
}

.table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.table.is-striped tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.table.is-hoverable tbody tr:hover {
  background-color: #f5f5f5;
}

.table.is-fullwidth {
  width: 100%;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
 padding: 0.25em 0.75em;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.tag.is-danger {
  background-color: #ff3860;
  color: white;
}

.tag.is-success {
  background-color: #48c774;
  color: white;
}

.tag.is-info {
  background-color: #3273dc;
  color: white;
}

.tag.is-warning {
  background-color: #ffdd57;
  color: rgba(0, 0, 0.7);
}

.tag.is-light {
  background-color: #f5f5f5;
  color: #333;
}

/* Sections */
.section {
  padding: 3rem 1.5rem;
}

/* Boxes */
.box {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 0.02);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Content */
.content {
  margin-bottom: 1rem;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.content p {
  margin-bottom: 1em;
}

.content ul {
  list-style: disc;
  margin-left: 2em;
  margin-bottom: 1em;
}

.content li {
  margin-bottom: 0.25em;
}

/* Images */
.image {
  display: block;
  position: relative;
}

.image img {
  display: block;
  height: auto;
  width: 100%;
}

.image.is-48x48 {
  width: 48px;
  height: 48px;
}

.image.is-64x64 {
  width: 64px;
  height: 64px;
}

.image.is-128x128 {
  width: 128px;
  height: 128px;
}

.image.is-rounded img {
  border-radius: 290486px;
}

/* Icons */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.icon.is-small {
  width: 1rem;
  height: 1rem;
}

.icon.is-large {
  width: 2rem;
  height: 2rem;
}

/* Utilities */
.has-text-centered {
  text-align: center;
}

.has-text-danger {
  color: #ff3860;
}

.has-text-success {
  color: #48c774;
}

.has-text-info {
  color: #3273dc;
}

.has-text-warning {
  color: #ffdd57;
}

.has-background-danger-light {
  background-color: #feecf0;
}

.has-background-warning-light {
  background-color: #fffbeb;
}

.is-fullwidth {
  width: 100%;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-5 { margin-left: 1.5rem; }
.ml-6 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-5 { margin-right: 1.5rem; }
.mr-6 { margin-right: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.5rem; }
.pt-6 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.5rem; }
.pb-6 { padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-6 { padding-left: 3rem; padding-right: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }

/* Flex utilities */
.is-flex {
  display: flex;
}

.is-justify-content-center {
  justify-content: center;
}

.is-justify-content-space-between {
  justify-content: space-between;
}

.is-align-items-center {
  align-items: center;
}

/* Display utilities */
.is-inline-block {
  display: inline-block;
}

.is-block {
  display: block;
}

/* Visibility utilities */
.is-hidden {
  display: none !important;
}

/* Responsive utilities */
@media screen and (max-width: 768px) {
  .is-hidden-mobile {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  .is-hidden-tablet {
    display: none !important;
  }
}

/* Level (for aligning items horizontally) */
.level {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.level-item {
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
}

.level-left, .level-right {
  display: flex;
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
}

.level-left {
  align-items: center;
  justify-content: flex-start;
}

.level-right {
  align-items: center;
  justify-content: flex-end;
}

/* Media object */
.media {
  display: flex;
  align-items: flex-start;
}

.media-content {
  flex: 1;
  text-align: left;
}

.media-left {
  margin-right: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.5rem 0;
}

.breadcrumb ul {
  display: flex;
  list-style: none;
}

.breadcrumb li {
  padding: 0 0.75em;
  position: relative;
}

.breadcrumb li:not(:first-child)::before {
  content: "/";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #b5b5b5;
}

.breadcrumb li.is-active a {
  color: #333;
  pointer-events: none;
  cursor: default;
}

/* Footer */
.footer {
  background-color: #f5f5f5;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.pagination-link {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid #dbdbdb;
  text-decoration: none;
  color: #333;
  margin: 0 0.25rem;
}

.pagination-link.is-current {
  background-color: #3273dc;
  border-color: #3273dc;
  color: white;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.tabs ul {
  display: flex;
  list-style: none;
  border-bottom: 1px solid #dbdbdb;
}

.tabs li {
  padding: 0.5rem 1rem;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
}

.tabs li.is-active {
  border-color: #dbdbdb;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color: white;
}

/* Select with icons */
.control.has-icons-left, .control.has-icons-right {
  position: relative;
}

.control.has-icons-left .icon, .control.has-icons-right .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.control.has-icons-left .icon {
  left: 0.5rem;
}

.control.has-icons-right .icon {
  right: 0.5rem;
}

.control.has-icons-left .input {
  padding-left: 2.5rem;
}

.control.has-icons-right .input {
  padding-right: 2.5rem;
}

/* Buttons group */
.field.is-grouped {
  display: flex;
}

.field.is-grouped .control {
  flex: 1;
}

.field.is-grouped .control:not(:last-child) {
  margin-right: 0.75rem;
}

.field.is-grouped.is-grouped-centered {
  justify-content: center;
}

/* Table container */
.table-container {
  overflow-x: auto;
}

/* Level responsive */
@media screen and (max-width: 768px) {
  .level {
    flex-direction: column;
  }
  
  .level-item {
    margin-bottom: 0.5rem;
  }
  
  .level-left, .level-right {
    flex: none;
  }
  
  .level-left + .level-right {
    margin-top: 1.5rem;
  }
}

/* Columns responsive */
@media screen and (max-width: 768px) {
  .columns {
    flex-direction: column;
  }
  
  .column {
    flex: none;
    width: 100%;
  }
  
  .column:not(:last-child) {
    margin-bottom: 0.75rem;
  }
}