/* Styles for warrantly.html - extracted from inline styles and cleaned */

:root {
  --primary: #EE0033;
  --primary-dark: #cc0029;
  --muted: #777;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --font-sans: "Roboto", Arial, sans-serif;
}
.otp-input {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.otp-input::-webkit-inner-spin-button,
.otp-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


* {
  box-sizing: border-box
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  padding-top: 90px;
  color: #333;
  margin: 0;
}

/* Navbar */
.navbar-fixed-top .navbar {
  margin-bottom: 0
}

.navbar-brand img {
  height: 36px
}

/* Container */
.container-n {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

/* Header */
.header-title {
  text-align: center;
  margin-bottom: 18px
}

.header-title h1 {
  font-size: 24px;
  margin: 6px 0;
  font-weight: 700
}

.header-title p {
  color: #666;
  margin: 0
}

/* Search panel */
.panel-search {
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card-bg);
}

.panel-search .input-group .form-control {
  height: 44px;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
}

.btn-search {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  height: 44px;
  border: none;
  padding: 8px 16px;
}

/* Table wrapper */
.table-wrap {
  background: var(--card-bg);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
  padding: 0 12px 12px;
}

/* IMEI table */
#imei-table {
  display: table;
  width: 100%;
  margin-bottom: 0
}

#imei-table thead th {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  vertical-align: middle;
}

#imei-table tbody td {
  vertical-align: middle;
  padding: 12px
}

/* Small helpers */
.lock-icon {
  color: #ccc;
  font-size: 16px
}

.loading {
  text-align: center;
  padding: 36px 12px;
  color: #666
}

.info-line {
  color: var(--muted);
  font-size: 13px
}

.pagination {
  margin: 0;
}

/* Warranty section */
.warranty-section {
  background: var(--card-bg);
  padding: 18px;
  border-radius: 10px;
  margin-top: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.badge-warranty {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px
}

.badge-main {
  background: #e8f5e9;
  color: #2e7d32
}

.badge-accessory {
  background: #e3f2fd;
  color: #1565c0
}

/* Error */
.error-message {
  background: #fff0f0;
  border-left: 4px solid var(--primary);
  padding: 12px;
  color: #c62828;
  border-radius: 6px;
}

/* spinner */
.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0)
  }

  100% {
    transform: rotate(360deg)
  }
}

/* Responsive */
@media (max-width:768px) {
  .header-title h1 {
    font-size: 20px
  }

  .panel-search .input-group .form-control {
    height: 42px
  }
}


.warranty-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 18px 0 8px;
  margin-bottom: 18px;
}

.search-row {
  padding: 10px 0 6px;
  border-bottom: 1px solid #f1f1f1;
}

.search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.search-input {
  width: 100%;
  height: 46px;
  border-radius: 24px;
  padding: 10px 18px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-size: 14px;
  box-shadow: none;
}

.btn-search-pill {
  height: 46px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  padding: 8px 22px;
  border: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(238, 0, 51, 0.08);
}

.btn-search-pill .fa {
  margin-right: 8px;
}

.table-panel {
  padding: 14px 0 8px;
}

.table-list thead th {
  background: transparent;
  border-bottom: 2px solid #f1f1f1;
  font-weight: 700;
  font-size: 13px;
}

.table-list tbody td {
  padding: 12px 12px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #f5f5f5;
}

.table-list tbody tr:hover {
  background: #fafafa;
}


#imei-pagination li:hover:not(.active) {
    background-color: #ee0033b8;
    transform: translateY(-2px);
}

#imei-pagination li:hover:not(.active) a {
    background-color: #ee0033b8;
    border-color: #ee0033b8 !important;
}

#imei-pagination li.active:hover {
    background-color: #ee0033b8;
    transform: translateY(-2px);
}

#imei-pagination li.active:hover a {
    background-color: #ee0033b8;
    border-color: #ee0033b8 !important;
}

.col-stt {
  width: 60px;
  font-weight: bold;
  text-align: center;
  color: #0A0A0A;
  font-weight: 700;
}

.col-action {
  width: 48px;
  text-align: center;
}

.lock-icon {
  color: #c9c9c9;
  font-size: 16px;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.table-footer .footer-left {
  color: var(--muted);
  font-size: 13px;
}

.table-footer .footer-right {}

.pagination {
  margin: 0;
}

/* smaller pagination dots like in screenshot */
.pagination>li>a,
.pagination>li>span {
  padding: 6px 10px;
  margin: 0 4px;
  border-radius: 4px;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.btn-login-header {
  border-radius: 15px;
  background-color: #EE0033;
}

.toast {
  background: white;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #4CAF50;
  animation: slideIn 0.3s ease;
  min-width: 250px;
  max-width: 350px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left-color: #4CAF50;
}

.toast.error {
  border-left-color: #f44336;
}

.toast.warning {
  border-left-color: #ff9800;
}

.toast.info {
  border-left-color: #2196F3;
}

/* active page style */
.pagination>li.active>a,
.pagination>li.active>span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* responsive adjustments */
@media (max-width: 768px) {
  .search-inner .row {
    display: block;
  }

  .btn-search-pill {
    margin-top: 8px;
    width: 100%;
  }

  .search-input {
    margin-bottom: 8px;
  }

  .table-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding-bottom: 20px;
  }
}

/* Custom Toast Styles for Bootstrap 4 */
.custom-toast {
  min-width: 300px;
  max-width: 400px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  border: none;
  overflow: hidden;
}

.toast.success {
  border-left: 4px solid #28a745;
}

.toast.error {
  border-left: 4px solid #dc3545;
}

.toast.warning {
  border-left: 4px solid #ffc107;
}

.toast.info {
  border-left: 4px solid #17a2b8;
}

.toast-header {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  font-weight: 600;
}

.toast-header strong {
  color: #333;
  font-size: 14px;
}

.toast-header small {
  color: #6c757d;
}

.toast-body {
  padding: 16px;
  color: #333;
  font-size: 14px;
}

.toast-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  display: inline-block;
}

/* Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.toast.show {
  animation: slideInRight 0.3s ease-out;
}

/* Responsive */
@media (max-width: 576px) {
  #toastContainer {
    right: 10px;
    left: 10px;
    top: 10px;
  }

  .custom-toast {
    min-width: auto;
    width: 100%;
    max-width: 100%;
  }
}