/* ========================================= */
/*              CUSTOM STYLES                */
/* ========================================= */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  border-top-left-radius: calc(0.375rem - 1px);
  border-top-right-radius: calc(0.375rem - 1px);
}

.btn {
  border-radius: 5px;
  padding: 8px 20px;
}

.btn-primary {
  background-color: #4361ee;
  border-color: #4361ee;
}

.btn-primary:hover {
  background-color: #3a56d4;
  border-color: #3a56d4;
}

.btn-success {
  background-color: #06d6a0;
  border-color: #06d6a0;
}

.btn-success:hover {
  background-color: #05c593;
  border-color: #05c593;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.badge {
  padding: 5px 10px;
  font-weight: 500;
}

.jumbotron {
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

footer {
  margin-top: auto;
}

.text-outline-white {
  color: #fff; /* teks putih */
  -webkit-text-stroke: 2px #000; /* outline hitam */
  font-weight: 800;
}

/* Form styling (global) */
.form-control:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .card {
    margin-bottom: 20px;
  }
}

/* ========================================= */
/*              LOGIN PAGE STYLES            */
/* ========================================= */

/* Login Container - DIPERBAIKI */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Container Bootstrap rows - DIPERBAIKI */
.login-container .row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Login Card - DIPERBAIKI */
.login-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-icon i {
  font-size: 2.5rem;
  color: white;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  color: #495057;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.form-label i {
  color: #667eea;
}

.input-group {
  position: relative;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  height: auto;
}

/* Override focus state khusus login (lebih kuat dari global) */
.login-container .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  z-index: 3;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 3;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #667eea;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-check-label {
  color: #495057;
  font-size: 0.9rem;
  cursor: pointer;
}

.forgot-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.forgot-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Submit Button */
.form-submit {
  margin-bottom: 2rem;
}

.btn-login-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.btn-login-submit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn-login-submit:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #adb5bd;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e9ecef;
}

.divider span {
  padding: 0 1rem;
}

/* Social Login */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-social {
  flex: 1;
  padding: 0.875rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  color: #495057;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-social.google:hover {
  border-color: #db4437;
  background: rgba(219, 68, 55, 0.05);
  color: #db4437;
}

.btn-social.facebook:hover {
  border-color: #4267b2;
  background: rgba(66, 103, 178, 0.05);
  color: #4267b2;
}

/* Register Link */
.register-link {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.register-link p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.register-cta {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.register-cta:hover {
  color: #764ba2;
  gap: 0.5rem;
}

/* Decoration */
.login-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: -75px;
  transform: translateY(-50%);
}

/* Responsive untuk halaman login */
@media (max-width: 992px) {
  .login-container {
    padding: 1.5rem;
  }

  .login-card {
    max-width: 480px;
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 1.5rem;
  }

  .login-card {
    padding: 2rem;
    border-radius: 20px;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .login-icon {
    width: 70px;
    height: 70px;
  }

  .login-icon i {
    font-size: 2rem;
  }

  .social-login {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .login-icon i {
    font-size: 1.75rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .circle-1,
  .circle-2,
  .circle-3 {
    display: none;
  }
}

/* Tambahan untuk laptop/desktop - DIPERBAIKI */
@media (min-width: 992px) {
  .login-container {
    padding: 3rem;
  }

  .login-card {
    padding: 3rem;
    max-width: 480px;
  }
}

@media (min-width: 1200px) {
  .login-container {
    padding: 3rem;
  }

  .login-card {
    padding: 3.5rem;
    max-width: 500px;
  }
}

/* ========================================= */
/*           CART PAGE STYLES                */
/* ========================================= */

/* Cart Header */
.cart-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.cart-header h2 {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Empty Cart */
.cart-empty {
  background: white;
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cart-empty i {
  color: #667eea;
  opacity: 0.3;
}

.cart-empty h4 {
  color: #1a1a1a;
  font-weight: 700;
  margin-top: 1.5rem;
}

.cart-empty p {
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Cart Table */
.cart-table-wrapper {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.cart-table {
  margin-bottom: 0;
}

.cart-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cart-table thead th {
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.cart-table tbody td {
  vertical-align: middle;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-table tbody tr:hover {
  background-color: #f8f9ff;
}

.product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info h6 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: #1a1a1a;
}

.product-info small {
  color: #6c757d;
}

.quantity-input {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quantity-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-remove {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-remove:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  color: white;
}

.cart-table tfoot {
  background: #f8f9fa;
}

.cart-table tfoot th {
  padding: 1.25rem 1rem;
  font-weight: 700;
  border: none;
}

.cart-total {
  color: #667eea;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Cart Actions */
.cart-actions {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.btn-modern {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-update {
  background: linear-gradient(135deg, #ffd93d 0%, #f6c23e 100%);
  color: #1a1a1a;
}

.btn-update:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.3);
  color: #1a1a1a;
}

.btn-clear {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.btn-clear:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  color: white;
}

.btn-continue {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
  color: white;
}

.btn-checkout {
  background: linear-gradient(135deg, #06d6a0 0%, #05c593 100%);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 214, 160, 0.3);
  color: white;
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card .card-body {
  padding: 2rem;
}

.info-card h5 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card h5 i {
  color: #667eea;
}

.info-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.info-card ul li {
  color: #495057;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.info-card ul li:last-child {
  margin-bottom: 0;
}

/* Responsive Cart */
@media (max-width: 768px) {
  .cart-header {
    padding: 1.5rem;
  }

  .cart-header h2 {
    font-size: 1.5rem;
  }

  .cart-actions {
    padding: 1rem;
  }

  .cart-actions .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .cart-actions .d-flex > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-modern {
    width: 100%;
  }

  .product-image {
    width: 60px;
    height: 60px;
  }
}
