/* Content Wrapper - Clean Modern */
.content-wrapper {
  background-color: #ecf0f5 !important;
}

.content {
  padding: 0 20px 20px;
}

/* Cards inside content - remove box borders, add soft shadow */
.content .box {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  background: #fff;
  margin-bottom: 20px;
}

.content .box .box-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 18px;
}

.content .box .box-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.content .box .box-body {
  padding: 18px;
}

.content .box .box-footer {
  border-top: 1px solid #f0f0f0;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: 0 0 10px 10px;
}

/* Tables inside content - clean borders */
.content .box .box-body table {
  margin-bottom: 0;
}

.content .box .box-body table thead th {
  background: #f8f9fb;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.content .box .box-body table tbody td {
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #555;
  vertical-align: middle;
}

.content .box .box-body table tbody tr:last-child td {
  border-bottom: none;
}

/* Callouts - modern info cards */
.content .callout {
  border-radius: 8px;
  border: none;
  border-left: 3px solid;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.content .callout-info {
  border-left-color: #3c8dbc;
  background: #f0f7ff;
}

.content .callout-warning {
  border-left-color: #e67e22;
  background: #fef9f0;
}

.content .callout-danger {
  border-left-color: #dd4b39;
  background: #fef0ef;
}

/* Panels - rounded */
.content .panel {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Well - rounded */
.content .well {
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fafafa;
  box-shadow: none;
}

/* Form elements inside content */
.content .form-control {
  border-radius: 6px;
  border: 1px solid #ddd;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.content .form-control:focus {
  border-color: #3c8dbc;
  box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.12);
}

/* Buttons - rounded */
.content .btn {
  border-radius: 6px;
  transition: all 0.15s;
}

.content .btn-primary {
  background: #3c8dbc;
  border-color: #3c8dbc;
}

.content .btn-primary:hover {
  background: #2c6fa0;
  border-color: #2c6fa0;
}

@media (max-width: 767px) {
  .content {
    padding: 0 12px 12px;
  }

  .content .box {
    border-radius: 8px;
  }
}

/* Success Card - Shared across all success pages */
.success-wrapper {
  max-width: 480px;
}

.success-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.success-card-body {
  padding: 48px 36px;
  text-align: center;
}

.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a65a, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 6px 20px rgba(0, 166, 90, 0.2);
}

.success-icon i {
  font-size: 40px;
  color: #fff;
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
}

.success-desc {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin: 0 0 36px;
}

.success-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0 0 28px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-actions .btn {
  width: 100%;
  border-radius: 8px !important;
  font-weight: 500;
  padding: 12px 24px;
  font-size: 14px;
}

.success-actions .btn-primary {
  background: #3c8dbc;
  border-color: #3c8dbc;
}

.success-actions .btn-primary:hover {
  background: #2c6fa0;
  border-color: #2c6fa0;
}

.success-actions .btn-info {
  background: #3c8dbc;
  border-color: #3c8dbc;
}

.success-actions .btn-info:hover {
  background: #2c6fa0;
  border-color: #2c6fa0;
}

.success-actions .btn-success {
  background: #00a65a;
  border-color: #00a65a;
}

.success-actions .btn-success:hover {
  background: #008d4c;
  border-color: #008d4c;
}

.success-actions .btn-link {
  color: #3c8dbc;
  font-size: 13px;
  padding: 8px;
}

.success-actions .btn-link:hover {
  color: #2c6fa0;
}

@media (max-width: 767px) {
  .success-card-body {
    padding: 32px 20px;
  }

  .success-icon {
    width: 72px;
    height: 72px;
  }

  .success-icon i {
    font-size: 32px;
  }

  .success-title {
    font-size: 18px;
  }
}

/* Content Header - Modern Clean */
.content-header {
  padding: 20px !important;
  background: #fff;
}

.content-header > h1 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.content-header > h1 > small {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  padding-left: 6px;
}

.content-header > .breadcrumb {
  float: right;
  background: transparent;
  margin: 0;
  font-size: 12px;
  padding: 0;
  position: absolute;
  top: 22px;
  right: 20px;
  border-radius: 0;
}

.content-header > .breadcrumb > li > a {
  color: #999;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}

.content-header > .breadcrumb > li > a:hover {
  color: #3c8dbc;
}

.content-header > .breadcrumb > li > a > .fa,
.content-header > .breadcrumb > li > a > .glyphicon,
.content-header > .breadcrumb > li > a > .ion {
  margin-right: 4px;
  font-size: 11px;
}

.content-header > .breadcrumb > li + li:before {
  content: "\203A\00a0";
  color: #ccc;
  font-size: 14px;
}

.content-header > .breadcrumb > li.active {
  color: #555;
  font-weight: 500;
}

@media (max-width: 991px) {
  .content-header {
    padding: 16px 16px 10px !important;
  }

  .content-header > h1 {
    font-size: 16px;
  }

  .content-header > .breadcrumb {
    position: relative;
    top: 0;
    right: 0;
    float: none;
    background: transparent;
    padding: 6px 0 0;
    margin-top: 6px;
  }
}

/* Spec Card - Shared Component */
.spec-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.spec-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.spec-card-header i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #3c8dbc, #2c6fa0);
  flex-shrink: 0;
}

.spec-card-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.spec-card-body {
  padding: 24px;
}

.spec-card .form-group {
  margin-bottom: 20px;
}

.spec-card .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.spec-card .form-group label small {
  font-weight: 400;
  color: #999;
}

.spec-card .form-control {
  border-radius: 8px;
}

.spec-card .form-control:focus {
  border-color: #3c8dbc;
  box-shadow: none;
}

.spec-card .is-invalid {
  border-color: #dd4b39 !important;
}

.spec-card .text-danger {
  color: #dd4b39;
  font-size: 12px;
  margin-top: 4px;
}

.spec-card .input-icon {
  position: relative;
}

.spec-card .input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}

.spec-card .input-icon .form-control {
  padding-left: 38px;
}

.spec-card .input-icon .form-control:focus + i,
.spec-card .input-icon .form-control:focus ~ i {
  color: #3c8dbc;
}

.spec-card .input-icon .is-invalid + i,
.spec-card .input-icon .is-invalid ~ i {
  color: #dd4b39;
}

.spec-card .toggle-password {
  position: relative;
}

.spec-card .toggle-password .input-icon .form-control.has-toggle {
  padding-right: 42px;
}

.spec-card .toggle-password .btn-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  z-index: 2;
}

.spec-card .toggle-password .btn-toggle:hover {
  color: #333;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  padding: 9px 24px;
  font-size: 14px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #3c8dbc, #2c6fa0);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(60, 141, 188, 0.3);
}

.spec-card .btn-submit {
  width: 100%;
  margin-top: 8px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #2c6fa0, #245f8a);
  box-shadow: 0 4px 14px rgba(60, 141, 188, 0.4);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(60, 141, 188, 0.3);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  padding: 9px 24px;
  font-size: 14px;
  letter-spacing: 0.3px;
  background: #fff;
  color: #555;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
  background: #eef0f3;
  border-color: #ccc;
  color: #333;
}

.btn-submit.btn-success {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-submit.btn-success:hover {
  background: linear-gradient(135deg, #219653, #196f3d);
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.4);
}

.btn-default {
  border-radius: 8px !important;
  font-weight: 600;
  padding: 9px 24px !important;
  font-size: 14px;
  border: none;
}

/* Confirm Modal - Reusable */
.confirm-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .4);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.confirm-modal.open {
	display: flex;
}

.confirm-modal-box {
	background: #fff;
	border-radius: 12px;
	padding: 28px 32px;
	max-width: 380px;
	width: 90%;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
	text-align: center;
}

.confirm-modal-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	background: #f0f7ff;
}

.confirm-modal-icon i {
	font-size: 22px;
	color: #3c8dbc;
}

.confirm-modal-icon.danger {
	background: #fef0ef;
}

.confirm-modal-icon.danger i {
	font-size: 22px;
	color: #dd4b39;
}

.confirm-modal-box h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.confirm-modal-box p {
	margin: 0 0 24px;
	font-size: 13px;
	color: #888;
	line-height: 1.5;
}

.confirm-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.confirm-modal-actions .btn-default {
	min-width: 100px;
}

.confirm-modal-actions .btn-submit {
	min-width: 100px;
}

/* Dropzone - Shared upload component */
.spec-card .drop-zone {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.spec-card .drop-zone:hover,
.spec-card .drop-zone.dragover {
  border-color: #3c8dbc;
  background: #f8fbff;
}

.spec-card .drop-zone.input-error {
  border-color: #dd4b39;
  box-shadow: 0 0 0 3px rgba(221, 75, 57, 0.1);
}

.spec-card .drop-zone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.spec-card .drop-zone-icon i {
  font-size: 22px;
  color: #3c8dbc;
}

.spec-card .drop-zone-title {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.spec-card .drop-zone-sub {
  font-size: 12px;
  color: #aaa;
}

.spec-card .drop-zone-sub a {
  color: #3c8dbc;
  text-decoration: underline;
}

.spec-card .drop-zone.drop-zone-error {
  border-color: #dd4b39 !important;
  background: #fff8f8 !important;
}

.spec-card .drop-zone input[type="file"] {
  display: none;
}

.spec-card .preview-header {
  text-align: center;
  margin-bottom: 20px;
}

.spec-card .preview-header .preview-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f8ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.spec-card .preview-header .preview-icon i {
  font-size: 22px;
  color: #00a65a;
}

.spec-card .preview-header h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.spec-card .preview-header p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.spec-card .preview-image {
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 20px;
  background: #fafafa;
  text-align: center;
  margin-bottom: 20px;
}

.spec-card .preview-image img {
  max-width: 100%;
  max-height: 180px;
}

.spec-card .drop-zone-preview {
  display: none;
}

.spec-card .drop-zone-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.spec-card .drop-zone-preview .file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.spec-card .drop-zone-preview .file-info .btn-remove {
  color: #dd4b39;
  cursor: pointer;
  font-size: 13px;
}

.spec-card .drop-zone-preview .file-info .btn-remove:hover {
  color: #c0392b;
}

/* Readonly field */
.spec-card .readonly-field {
  background: #f5f5f5 !important;
  color: #888 !important;
  cursor: not-allowed;
}

.welcome-text {
  font-size: 15px;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

.welcome-text b {
  color: #3c8dbc;
}

/* Quota cards */
.quota-card {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.quota-card.accent-green {
  background: linear-gradient(135deg, #f4fbf7 0%, #e8f8ef 100%);
  box-shadow: 0 1px 4px rgba(0, 166, 90, 0.08);
}

.quota-card.accent-orange {
  background: linear-gradient(135deg, #fffcf8 0%, #fdf3e7 100%);
  box-shadow: 0 1px 4px rgba(230, 126, 34, 0.08);
}

.quota-card.accent-red {
  background: linear-gradient(135deg, #fff8f7 0%, #fdeeed 100%);
  box-shadow: 0 1px 4px rgba(221, 75, 57, 0.08);
}

.quota-card.accent-purple {
  background: linear-gradient(135deg, #faf9ff 0%, #f0eef8 100%);
  box-shadow: 0 1px 4px rgba(96, 92, 168, 0.08);
}

.quota-icon {
  display: none;
}

.quota-icon.bg-blue,
.quota-icon.bg-green,
.quota-icon.bg-orange,
.quota-icon.bg-red,
.quota-icon.bg-purple,
.quota-icon.bg-black {
  display: none;
}

.quota-card .quota-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quota-card .quota-card-icon.blue {
  background: linear-gradient(135deg, #3c8dbc, #6cb4e8);
}

.quota-card .quota-card-icon.green {
  background: linear-gradient(135deg, #00a65a, #3dd68c);
}

.quota-card .quota-card-icon.orange {
  background: linear-gradient(135deg, #e67e22, #f5b041);
}

.quota-card .quota-card-icon.red {
  background: linear-gradient(135deg, #dd4b39, #f1948a);
}

.quota-card .quota-card-icon.purple {
  background: linear-gradient(135deg, #605ca8, #a99bd4);
}

.quota-info {
  flex: 1;
  min-width: 0;
}

.quota-info .quota-label {
  font-size: 12px;
  font-weight: 500;
  color: #8a9bb5;
  margin: 0 0 2px;
  letter-spacing: 0.3px;
  display: block;
}

.quota-info .quota-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a2332;
  margin: 0;
  line-height: 1.2;
  display: block;
}

.quota-info .quota-value small {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}

.quota-card .quota-topup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #3c8dbc;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all .2s;
  white-space: nowrap;
}

.quota-card .quota-topup:hover {
  background: #3c8dbc;
  color: #fff;
  box-shadow: 0 2px 8px rgba(60, 141, 188, 0.3);
}

.quota-card .quota-topup i {
  font-size: 10px;
}

/* Modal modern */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 24px;
}

.modal-header .close {
  margin-top: -4px;
  font-size: 24px;
  opacity: 0.4;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.modal-body {
  padding: 24px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.modal-footer .btn {
  border-radius: 8px !important;
  font-weight: 500;
  padding: 10px 24px;
  min-width: 100px;
}

/* Alert card */
.alert-card {
  background: #fef9f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #8a6d3b;
  line-height: 1.6;
  border: none;
}

.alert-card a {
  font-weight: 600;
  color: #e67e22;
}

.text-red {
  color: #dd4b39;
}

@media (max-width: 991px) {
  .quota-card {
    padding: 10px 14px;
  }

  .quota-info .quota-label {
    font-size: 12px;
  }

  .quota-info .quota-value {
  }

  .quota-info .quota-value {
    font-size: 18px;
  }
}

/* Step Wizard - Card Tabs */
.step-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 24px;
}

.step-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  position: relative;
}

.step-tab .step-num {
  font-size: 13px;
  font-weight: 700;
  color: #bbb;
  margin-bottom: 2px;
}

.step-tab .step-text {
  font-size: 12px;
  font-weight: 500;
  color: #999;
}

.step-tab.active {
  border-bottom-color: #3c8dbc;
}

.step-tab.active .step-num {
  color: #3c8dbc;
}

.step-tab.active .step-text {
  color: #333;
  font-weight: 600;
}

.step-tab.done .step-num {
  color: #00a65a;
}

.step-tab.done .step-text {
  color: #00a65a;
}

.step-tab.done .step-num::after {
  content: " \f00c";
  font-family: FontAwesome;
  font-size: 10px;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.step-actions .btn-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.step-actions .btn-prev {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #3c8dbc;
  border: 1px solid #3c8dbc;
}

.step-actions .btn-prev:hover {
  background: #3c8dbc;
  color: #fff;
}

.step-actions .btn-submit {
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 767px) {
  .step-wizard {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .step-connector {
    width: 2px;
    height: 12px;
    margin: 0 0 0 15px;
  }
}

/* File list items */
.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.file-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
}

.file-item-icon i {
  font-size: 14px;
  color: #e74c3c;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  font-size: 11px;
  color: #aaa;
}

.file-item-remove {
  color: #dd4b39;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

.file-item-remove:hover {
  color: #c0392b;
}

/* Upload progress items */
.upload-file-list {
  max-height: 240px;
  overflow-y: auto;
}

.upload-file-item {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.upload-file-item:last-child {
  margin-bottom: 0;
}

.upload-file-item .file-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  transition: background 0.3s;
}

.upload-file-item .file-icon-wrap .fa {
  font-size: 15px;
}

.upload-file-item .file-icon-wrap .fa-file-pdf-o {
  color: #e74c3c;
}

.upload-file-item .file-icon-wrap .fa-exclamation-triangle {
  color: #dd4b39;
}

.upload-file-item .file-icon-wrap.done {
  background: #eaf7ee;
}

.upload-file-item .file-icon-wrap.done .fa-file-pdf-o {
  color: #00a65a;
}

.upload-file-item .file-detail {
  flex: 1;
  min-width: 0;
}

.upload-file-item .file-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.upload-file-item .file-name a {
  color: #3c8dbc;
}

.upload-file-item .file-meta {
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.upload-file-item .file-size {
  font-size: 11px;
  color: #aaa;
}

.upload-file-item .file-error {
  font-size: 11px;
  color: #dd4b39;
  font-weight: 600;
}

.file-status-icon {
  flex-shrink: 0;
  margin-left: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf2f7;
  transition:
    background 0.3s,
    transform 0.3s;
}

.status-badge.done {
  background: #00a65a;
  transform: scale(1.05);
}

.status-badge.fail {
  background: #dd4b39;
}

.status-badge .fa-circle-o-notch {
  color: #3c8dbc;
  font-size: 11px;
  animation: spin 1s linear infinite;
}

.status-badge .fa-check {
  color: #fff;
  font-size: 10px;
}

.status-badge .fa-times {
  color: #fff;
  font-size: 10px;
}

/* Upload progress bar */
.upload-status-text {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin: 0 0 16px;
}

.upload-status-text.success {
  color: #00a65a;
  font-weight: 600;
}

.upload-status-text.error {
  color: #dd4b39;
  font-weight: 600;
}

.upload-progress-section {
  background: #f9fafb;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.upload-progress-bar {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #e8ecf0;
}

.upload-progress-bar .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3c8dbc, #6cb2eb);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.upload-progress-bar .bar.complete {
  background: linear-gradient(90deg, #00a65a, #2ecc71);
}

.upload-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.upload-progress-info .file-count {
  font-size: 11px;
  color: #999;
}

.upload-progress-info .percent-value {
  font-size: 18px;
  font-weight: 700;
  color: #3c8dbc;
}

.upload-progress-info .percent-value.complete {
  color: #00a65a;
}

/* Checkbox modern */
.checkbox-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-top: 16px;
  cursor: pointer;
}

.checkbox-modern input[type="checkbox"] {
  margin: 0;
}

.checkbox-modern label {
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin: 0;
}

.checkbox-modern .text-red {
  font-size: 11px;
}

/* Info cards */
.info-card {
  background: #f0f7ff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.info-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3c8dbc;
}

.info-card h4 i {
  margin-right: 4px;
}

.info-card p {
  font-size: 12px;
  color: #666;
  margin: 0 0 4px;
  line-height: 1.5;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.warning-card {
  background: #fef9f0;
}

.warning-card h4 {
  color: #e67e22;
}

/* Spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Autocomplete Dropdown */
.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1055;
  display: none;
  float: left;
  min-width: 240px;
  max-height: 220px;
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 0;
  margin: 4px 0 0;
  list-style: none;
  font-size: 13px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background-clip: padding-box;
}

.ui-autocomplete .ui-menu-item {
  position: relative;
  margin: 0;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.ui-autocomplete .ui-menu-item > a,
.ui-autocomplete .ui-menu-item-wrapper {
  display: block;
  padding: 8px 14px;
  clear: both;
  font-weight: 400;
  line-height: 1.45;
  color: #333333;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ui-autocomplete .ui-menu-item > a:hover,
.ui-autocomplete .ui-menu-item > a.ui-state-focus,
.ui-autocomplete .ui-menu-item > a.ui-state-active,
.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-menu-item.ui-state-focus,
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background-color: #f0f7ff;
  color: #3c8dbc;
  border: none;
  margin: 0;
}

/* Upload modal */
#uploadModal .spec-card {
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

#modalFooter {
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 24px;
}

#modalFooter .btn-submit {
  width: auto;
}

/* Upload responsive */
@media (max-width: 767px) {
  .upload-file-item {
    padding: 8px 6px;
  }

  .upload-file-item .file-icon-wrap {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  .upload-file-item .file-icon-wrap .fa {
    font-size: 12px;
  }

  .upload-file-item .file-name {
    font-size: 12px;
  }

  .upload-file-item .file-size {
    font-size: 10px;
  }

  .upload-progress-info .percent-value {
    font-size: 16px;
  }
}

/* Form group material - shared across signing/meterai */
.form-group-material {
  margin-bottom: 16px;
}

.form-group-material label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

.form-group-material .form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  font-size: 13px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group-material .form-control:focus {
  border-color: #3c8dbc;
  box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.1);
}

/* Order type buttons - shared across signing-upload, signing-submit, meterai-submit */
.order-type-group {
  display: flex;
  gap: 4px;
  background: #f1f3f7;
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
}

.order-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-type-btn:hover {
  background: rgba(255,255,255,0.5);
}

.order-type-btn.selected {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.order-type-btn i {
  font-size: 14px;
  color: #999;
  transition: color .2s;
}

.order-type-btn:hover i {
  color: #3c8dbc;
}

.order-type-btn.selected i {
  color: #3c8dbc;
}

.order-type-btn span {
  font-size: 12px;
  font-weight: 500;
  color: #777;
  transition: color .2s;
}

.order-type-btn:hover span {
  color: #3c8dbc;
}

.order-type-btn.selected span {
  color: #3c8dbc;
  font-weight: 600;
}

@media (max-width: 767px) {
  .order-type-btn {
    padding: 8px 6px;
    gap: 4px;
  }
  .order-type-btn i {
    font-size: 12px;
  }
  .order-type-btn span {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .order-type-btn {
    padding: 7px 4px;
    gap: 3px;
  }
  .order-type-btn i {
    font-size: 11px;
  }
  .order-type-btn span {
    font-size: 10px;
  }
}

/* Upload modal popup */
.upload-modal-dialog {
  max-width: 480px;
  margin: 0 auto;
}

.upload-modal-dialog .spec-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.upload-modal-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: #f5f6f8;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all .2s;
}

.upload-modal-close:hover {
  background: #fef2f2;
  color: #e74c3c;
}

.upload-modal-footer {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
}

.upload-modal-footer .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: #f5f6f8;
  color: #555;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.upload-modal-footer .btn-secondary:hover {
  background: #eceef2;
}

.upload-modal-footer .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-modal-footer .btn-submit.loading {
  pointer-events: none;
  opacity: .7;
  cursor: default;
}

/* Alert - Shared Component */
.spec-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: none;
  position: relative;
}

.spec-alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.spec-alert-content {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}

.spec-alert-content span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

.spec-alert-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.4;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.spec-alert-close:hover {
  opacity: 0.7;
}

.spec-alert-danger {
  background: #fff5f5;
}

.spec-alert-danger .spec-alert-icon {
  background: transparent;
  color: #dd4b39;
}

.spec-alert-danger .spec-alert-content span {
  color: #c0392b;
}

.spec-alert-danger .spec-alert-close {
  color: #dd4b39;
}

.spec-alert-success {
  background: #f0faf4;
}

.spec-alert-success .spec-alert-icon {
  background: #e8f8ef;
  color: #00a65a;
}

.spec-alert-success .spec-alert-content span {
  color: #1e8449;
}

.spec-alert-success .spec-alert-close {
  color: #00a65a;
}

/* Table inside spec-card */
.spec-card table {
  margin-bottom: 0;
}

.spec-card table thead th {
  background: #f8f9fb;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-card table tbody td {
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #555;
  vertical-align: middle;
}

.spec-card table tbody tr:last-child td {
  border-bottom: none;
}

.spec-card table tbody tr:hover {
  background: #f8f9fb;
}

/* DataTables inside spec-card */
.spec-card .dataTables_wrapper {
  margin-top: 4px;
}

.spec-card div.dataTables_length select {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 4px 8px;
  font-size: 13px;
}

.spec-card div.dataTables_filter input {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.spec-card div.dataTables_filter input:focus {
  border-color: #3c8dbc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.1);
}

.spec-card div.dataTables_info {
  font-size: 12px;
  color: #999;
  padding-top: 12px;
}

.spec-card div.dataTables_paginate {
  padding-top: 8px;
}

.spec-card div.dataTables_paginate .pagination {
  gap: 4px;
}

.spec-card div.dataTables_paginate .pagination > li > a {
  border-radius: 6px;
  border: 1px solid #e4e7ec;
  font-size: 12px;
  padding: 6px 12px;
  color: #555;
  transition: all 0.15s;
}

.spec-card div.dataTables_paginate .pagination > li > a:hover {
  background: #3c8dbc;
  border-color: #3c8dbc;
  color: #fff;
}

.spec-card div.dataTables_paginate .pagination > li.active > a,
.spec-card div.dataTables_paginate .pagination > li.active > a:hover {
  background: #3c8dbc;
  border-color: #3c8dbc;
  color: #fff;
}

.spec-card div.dataTables_paginate .pagination > li.disabled > a {
  color: #ccc;
  background: #fafafa;
  border-color: #eee;
}

.spec-card div.dataTables_length label,
.spec-card div.dataTables_filter label {
  font-size: 13px;
  color: #666;
}
