/* Minimal 12-column grid — replaces Bootstrap 3 grid */
*, *::before, *::after { box-sizing: border-box; }

.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
[class*="col-"] {
  position: relative;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

/* xs (default — all sizes) */
.col-xs-6  { width: 50%; }
.col-xs-12 { width: 100%; }

/* sm (≥768px) */
@media (min-width: 768px) {
  .col-sm-4  { width: 33.333%; }
  .col-sm-12 { width: 100%; }
  .col-sm-push-2 { left: 16.667%; }
}

/* md (≥992px) */
@media (min-width: 992px) {
  .col-md-2  { width: 16.667%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.333%; }
  .col-md-6  { width: 50%; }
  .col-md-8  { width: 66.667%; }
  .col-md-12 { width: 100%; }
  .col-md-offset-2 { margin-left: 16.667%; }
  .col-md-offset-3 { margin-left: 25%; }
  .col-md-offset-4 { margin-left: 33.333%; }
}

/* Visibility */
.text-center { text-align: center; }

@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md { display: none !important; }
}
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-y: auto;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.in {
  opacity: 1;
}
.modal-dialog {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 15px;
}
.modal-content {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 40px rgba(0,0,0,0.3);
}
.modal-body {
  padding: 25px;
  position: relative;
}
.close {
  float: right;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.4;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.close:hover { opacity: 0.7; }
body.modal-open { overflow: hidden; }

/* Alert */
.alert {
  padding: 12px 20px;
  margin-bottom: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative;
}
.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert .close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}
