/* 
    GLOBAL STYLE FOR Events
     
    1. Semua Event (Event.php)
    2. Detail Event (DetailEvent.php)
    3. Detail Event Saya (DetailEventSaya.php)


*/

/* ========= EVENTS ============ */

.event-title-h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 36px;
  background: linear-gradient(90deg, #243d5c 0%, #7eb6fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

/* --- SELECT2 STYLING --- */
.select2-dropdown {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  padding: 10px 0 !important;
  z-index: 9999;
  overflow: hidden;
}

.select2-results__option {
  padding: 10px 20px !important;
  margin: 4px 10px !important;
  border-radius: 10px !important;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: #333 !important;
  transition: all 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #68a8f333 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #68a8f333 !important;
}

.select2-container .select2-selection--single {
  height: 50px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 15px;
  color: #595959 !important;
  font-size: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 10px !important;
}

/* --- FORM & CARD FILTER STYLING --- */
.card-filter select.form-control {
  height: 50px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  color: #595959 !important;
  font-size: 15px !important;
  padding-left: 15px !important;
  background-color: #fff;
  cursor: pointer;
}

.form-control {
  height: 45px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding-left: 15px;
}

.card-filter {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 10px;
}

/* --- CARD EVENT STYLING --- */
.card-event {
  border: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-event:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-event-img-wrapper {
  position: relative;
  height: 198px;
  overflow: hidden;
}

.card-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card-event:hover .card-event-img {
  transform: scale(1.05);
}

.card-body-custom {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-weight: 700;
  font-size: 16px;
  color: #1a202c;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-meta {
  font-size: 13px;
  color: #718096;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.event-meta i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  color: #4a5568;
}

/* --- BADGES STYLING --- */
.badge-custom {
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 12px;
}

.badge-blue {
  background-color: #5f90be;
  color: white;
}

.badge-green {
  background-color: #23983f;
  color: white;
}

.badge-gray {
  background-color: #2fca54;
  color: white;
}

.badge-yellow {
  background-color: #be2f2f;
  color: white;
}

.badge-red {
  background-color: #f56565;
  color: white;
}

.badge-purple {
  background-color: #5a5f8d;
  color: white;
}

.badge-ongoing {
  background-color: #6c71a9;
  color: white;
}

/* --- MODAL STYLING --- */
.event-modal-content {
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: none;
  overflow: hidden;
}

.event-modal-header {
  background: linear-gradient(90deg, #396092 0%, #4c80c2 100%);
  color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-modal-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.event-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.event-modal-close:hover {
  color: #1f2937;
  text-decoration: none;
}

.event-modal-close:focus,
.event-modal-close:active {
  outline: none !important;
  box-shadow: none !important;
}

.event-modal-body {
  background: #fff;
  padding: 28px 24px 24px 24px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  color: #396092;
}

.event-modal-list {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

.event-modal-list li {
  font-size: 16px;
  margin-bottom: 6px;
  color: #396092;
}

.event-modal-infobox {
  background: #edf2f9;
  color: #223a57;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(76, 128, 194, 0.08);
}

.event-modal-link {
  color: #4c80c2;
  transition: color 0.2s;
}

.event-modal-link:hover {
  color: #174ea6;
}

/* --- PAGINATION DEFAULT --- */
.pagination-wrapper .pagination {
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
}

.pagination-wrapper .page-item {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pagination-wrapper .page-item .page-link {
  font-family: "Roboto", sans-serif !important;
  font-size: 14px !important;
  color: #595959 !important;
  background-color: #fff !important;
  border: 1px solid #c8d8ec !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  min-width: 40px;
  text-align: center;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out;
  margin: 0 !important;
  display: block;
  text-decoration: none !important;
}

.pagination-wrapper .page-item .page-link:hover {
  background-color: #f8f9fa !important;
  color: #333 !important;
  border-color: #c8d8ec !important;
  text-decoration: none !important;
  z-index: 2;
}

.pagination-wrapper .page-item.active .page-link {
  background-color: #4c80c2 !important;
  border-color: #c8d8ec !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(76, 128, 194, 0.25) !important;
  z-index: 3;
}

.pagination-wrapper .page-item .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(76, 128, 194, 0.25) !important;
  outline: none !important;
}

.pagination-wrapper .page-item:first-child .page-link,
.pagination-wrapper .page-item:last-child .page-link {
  padding: 8px 20px !important;
}

@media (max-width: 834px) {
  .page-section {
    margin-top: 10% !important;
  }

  .event-title-h1 {
    font-size: 28px;
  }

  .card-filter .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .card-event-img-wrapper {
    height: 180px;
  }
}

@media (max-width: 414px) {
  .page-section {
    margin-top: 25% !important;
    padding-left: 15px;
    padding-right: 18px;
  }

  .event-title-h1 {
    font-size: 24px;
    margin-left: -12px;
  }

  .icon-bg-event {
    margin-left: -8px;
  }

  .d-flex.align-items-center.mb-4 img {
    width: 30px !important;
    height: 30px !important;
  }

  .card-filter .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-filter .card-body {
    padding: 15px;
  }

  .card-event {
    margin-bottom: 20px;
  }

  .card-event-img-wrapper {
    height: 160px;
  }

  .card-body-custom {
    padding: 15px;
  }

  .event-title {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .event-meta {
    font-size: 12px;
  }

  .select2-container {
    width: 100% !important;
  }

  .select2-selection--single {
    height: 45px !important;
  }

  .select2-selection__rendered {
    line-height: 45px !important;
  }

  .pagination-wrapper .pagination {
    gap: 4px;
    flex-wrap: wrap;
  }

  .pagination-wrapper .page-item .page-link {
    padding: 6px 10px !important;
    font-size: 12px !important;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pagination-wrapper .page-item:first-child .page-link,
  .pagination-wrapper .page-item:last-child .page-link {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .modal-dialog {
    margin: 40px 30px !important;
    max-width: 85% !important;
  }

  .event-modal-header {
    padding: 12px 15px;
  }

  .event-modal-title {
    font-size: 16px;
  }

  .event-modal-close img {
    width: 24px !important;
    height: 24px !important;
  }

  .event-modal-body {
    padding: 15px 15px;
  }

  .event-modal-body p,
  .event-modal-list li {
    font-size: 13px;
  }

  .event-modal-list {
    padding-left: 15px;
    margin-bottom: 10px;
  }

  .event-modal-infobox {
    padding: 10px;
    font-size: 12px;
    margin-top: 10px;
  }
}

/* ========= EVENTS ============ */

/* ========= DETAIL EVENTS ============ */

.li-h6-style {
  font-weight: 400 !important;
  color: #2a3f53 !important;
  margin-bottom: 0 !important;
}

.li-span-style {
  font-family: "Roboto", Arial, sans-serif !important;
  font-weight: 600 !important;
  color: #1b2d44 !important;
  font-size: 16px;
  margin-top: 4px;
}

.li-img-style {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  margin-right: 12px !important;
  display: block;
  margin-top: 2px;
}

.modal-confirm-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 15px;
  background: #fff;
}

.modal-confirm-header {
  border: none;
  padding-bottom: 0;
  position: relative;
}

.btn-close-custom {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #aaa;
  font-size: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.btn-close-custom:focus,
.btn-close-custom:active {
  outline: none !important;
  box-shadow: none !important;
  color: #aaa !important;
  background: #fff !important;
}

.modal-confirm-body {
  padding: 10px 30px 30px 30px;
  text-align: center;
}

.confirm-text {
  font-weight: 400;
  color: #1b2d44;
  font-size: 18px;
  line-height: 1.5;
}

.modal-btn-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.btn-confirm-yes,
.btn-confirm-no {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  font-weight: 500;
  transition: 0.2s;
  margin: 0;
  font-size: 16px;
}

.btn-confirm-yes {
  background: linear-gradient(180deg, #5887c5 0%, #356195 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 6px rgba(53, 97, 149, 0.3);
}

.btn-confirm-yes:hover {
  color: white;
  box-shadow: 0 6px 12px rgba(53, 97, 149, 0.4);
}

.btn-confirm-no {
  background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
  color: #000;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-confirm-no:hover {
  background: #dcdcdc;
  text-decoration: none;
  color: #000;
}

.btn-confirm-no:focus,
.btn-confirm-no:active,
.btn-confirm-yes:focus,
.btn-confirm-yes:active {
  outline: none !important;
  box-shadow: none !important;
}

.modal-btn-wrapper.type-3 {
  flex-wrap: wrap;
}

.modal-btn-wrapper.type-3 .btn-confirm-yes,
.modal-btn-wrapper.type-3 .btn-confirm-no {
  flex: 1 0 45%;
  margin-bottom: 8px;
}

#modalUniversal .modal-dialog {
  max-width: 700px !important;
}

.modal-confirm-content {
  width: 100%;
}

@media (max-width: 991px) {
  .page-section {
    padding-top: 20px;
    padding-left: 75px;
    padding-right: 75px;
  }

  .card img.mx-auto.d-block {
    width: 80% !important;
    padding: 2% !important;
  }

  .col-lg-3 .card:first-child {
    margin-bottom: 25px !important;
  }

  .col-lg-3 {
    margin-top: 20px;
  }

  .btn-trigger-modal {
    width: auto !important;
    display: inline-block !important;
    min-width: 200px;
    padding-left: 30px !important;
    padding-right: 30px !important;
    margin: 0 auto !important;
  }

  #modalUniversal .modal-dialog {
    max-width: 700px !important;
    margin: 1.75rem auto;
  }

  .modal-btn-wrapper {
    display: flex;
    flex-direction: row !important;
    gap: 15px !important;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .page-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card-body .mb-1[style*="font-size: 30px"] {
    font-size: 22px !important;
    line-height: 1.3;
  }

  .col-lg-3 .card:first-child {
    margin-bottom: 25px !important;
  }

  #deskripsi {
    font-size: 14px !important;
    text-align: left !important;
  }

  .card-body.py-4.px-4 {
    padding: 20px 15px !important;
  }

  .card img.mx-auto.d-block {
    width: 100% !important;
    padding: 0 !important;
  }

  .li-img-style {
    flex-shrink: 0;
  }

  .li-span-style {
    font-size: 14px !important;
  }

  .btn-trigger-modal {
    min-width: 70% !important;
  }

  #modalUniversal .modal-dialog {
    max-width: 85% !important;
    margin: 20px auto !important;
  }

  .modal-confirm-content {
    padding: 10px !important;
  }

  .modal-confirm-body {
    padding: 5px 15px 15px 15px !important;
  }

  .confirm-text {
    font-size: 14px !important;
    margin-bottom: 15px !important;
  }

  .modal-btn-wrapper {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .btn-confirm-yes,
  .btn-confirm-no {
    width: 100% !important;
    flex: none !important;
    margin-bottom: 0 !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
  }

  .btn-close-custom {
    top: 2px !important;
    right: 12px !important;
    font-size: 24px !important;
  }
}

/* ========= DETAIL EVENTS ============ */

/* ========= DETAIL EVENT SAYA ============ */
.li-h6-style {
  font-weight: 400 !important;
  color: #2a3f53 !important;
  margin-bottom: 0 !important;
  font-family: "Roboto", sans-serif;
}

.li-span-style {
  font-family: "Roboto", Arial, sans-serif !important;
  font-weight: 600 !important;
  color: #1b2d44 !important;
  font-size: 16px;
  margin-top: 4px;
}

.li-img-style {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  margin-right: 12px !important;
  display: block;
  margin-top: 2px;
}

.text-green-vcon {
  color: #10ac84;
}

.modal-content-custom {
  border-radius: 15px !important;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header-custom {
  background: linear-gradient(135deg, #396092 0%, #4473af 50%, #484c71 100%);
  padding: 15px 20px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.modal-title-custom {
  color: white;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.btn-close-custom {
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: 0.2s;
}

.btn-close-custom span {
  color: #888;
  font-size: 22px;
  line-height: 0;
  padding-bottom: 2px;
  font-weight: bold;
}

.btn-close-custom:focus,
.btn-close-custom:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.modal-body-text {
  font-family: "Roboto", sans-serif;
  color: #396092;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.modal-join-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px;
}

.modal-join-body {
  padding: 10px 20px;
  text-align: center;
}

.join-text-intro {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.join-event-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #1b2d44;
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.4;
}

.join-warning-box {
  text-align: left;
  font-family: "Roboto", sans-serif;
  color: #555;
  font-size: 15px;
  margin-bottom: 30px;
}

.join-warning-title {
  margin-bottom: 8px;
  color: #444;
}

.join-warning-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.join-warning-list li {
  margin-bottom: 5px;
}

.modal-warning-content {
  border-radius: 15px;
  border: none;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-warning-icon {
  width: 80px;
  height: 80px;
  background-color: #ffd4d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.modal-warning-icon i {
  color: #ff3b30;
  font-size: 32px;
  border: 2px solid #ff3b30;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-warning-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin-bottom: 10px;
}

.modal-warning-text {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
}

.btn-close-gray {
  position: absolute;
  right: 15px;
  top: 15px;
  background: #eaeaea;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: none;
  color: #555;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
}

.btn-close-gray:hover {
  background: #dcdcdc;
}

.btn-close-gray:focus,
.btn-close-gray:active {
  outline: none !important;
  box-shadow: none !important;
  color: #000 !important;
  background: #dcdcdc !important;
}

.alert-payment-box {
  background-color: #fffbeb;
  border: 2px solid #fbe89e;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.alert-payment-icon {
  width: 25px;
  height: 35px;
  min-width: 35px;
  background-color: #fef3c6;
  border: 1px solid #c0712b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.alert-payment-icon i {
  color: #e17100;
  font-size: 12px;
}

.alert-payment-text {
  color: #7b3306;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}

@media (max-width: 834px) {
  .page-section {
    padding-top: 30px;
  }

  .card img.mx-auto.d-block {
    width: 80% !important;
    padding: 3% !important;
  }

  .col-lg-3 {
    margin-top: 25px;
  }

  .col-lg-3 .card:first-child {
    margin-bottom: 25px !important;
  }

  .col-lg-3 .card {
    margin-bottom: 15px;
  }
}

@media (max-width: 414px) {
  .page-section {
    margin-top: 15% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .card-body .mb-1[style*="font-size: 30px"] {
    font-size: 22px !important;
    line-height: 1.4;
  }

  .col-lg-3 .card:first-child {
    margin-bottom: 25px !important;
  }

  .card img.mx-auto.d-block {
    width: 100% !important;
    padding: 0 !important;
    border-radius: 10px 10px 0 0;
  }

  #deskripsi {
    text-align: left !important;
    font-size: 14px !important;
  }

  .li-span-style {
    font-size: 14px !important;
  }

  .li-h6-style {
    font-size: 13px !important;
  }

  .li-img-style {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
  }

  .modal-dialog {
    margin: 20px auto !important;
    max-width: 90% !important;
  }

  .modal-join-body,
  .modal-body {
    padding: 15px !important;
  }

  .join-event-title {
    font-size: 16px !important;
  }

  .modal-warning-icon {
    width: 60px;
    height: 60px;
  }

  .modal-warning-icon i {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .btn-biru {
    width: 100%;
    text-align: center;
  }
}

/* ========= DETAIL EVENT SAYA ============ */
