﻿.btn {
    min-width: 50px;
}

    .btn.btn-icon {
        min-width: initial;
    }

    .btn i.fa {
        margin-right: 5px;
    }

.float-left {
    float: left;
}

.mr-1 {
    margin-right: 10px;
}

.btn-outline-primary {
    color: #3498db !important;
    border: 1px solid #3498db;
}

    .btn-outline-primary:hover {
        background-color: whitesmoke;
    }

.btn-outline-success {
    color: forestgreen;
}

.field-validation-error {
    color: #dc3545 !important;
    font-size: 10px;
    padding-left: 5px;
}

.input-validation-error {
    border-right: 2px solid #dc3545;
}

.dataTables_wrapper .row {
    display: flex;
}

    .dataTables_wrapper .row .col-sm-6 .dataTables_length {
        display: flex;
    }

    .dataTables_wrapper .row .col-sm-6 {
        width: auto;
    }

        .dataTables_wrapper .row .col-sm-6 .dataTables_filter {
            width: 100%
        }

.dataTables_filter label {
    width: 100%;
}

    .dataTables_filter label input {
        width: 100%;
    }

.btn-group-link {
    background-color: transparent !important;
    /*padding-left: 0;*/
}

    .btn-group-link:hover {
        font-weight: bolder !important;
    }

.btn-group ul.dropdown-menu {
    left: -80px;
}
#wait {
    background-color: #505050;
    display: none;
    height: 100%;
    opacity: 0.7 !important;
    position: fixed;
    width: 100%;
    z-index: 10000;
}
    #wait p {
        background-image: url("../images/ajax-loader.gif");
        background-position: center center;
        background-repeat: no-repeat;
        color: #FFFFFF;
        font-weight: bold;
        height: 100px;
        margin: 200px auto 0;
        text-align: center;
        width: 200px;
        opacity: 0.7 !important;
    }


/* =============== Auth Modal Header =============== */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-welcome i {
  font-size: 28px;
  color: var(--accent-color);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* =============== User Type Selector =============== */
.user-type-selector {
  display: flex;
  gap: 12px;
  padding: 6px;
  background: var(--bg-accent);
  border-radius: 12px;
  margin-bottom: 24px;
}

[data-theme="dark"] .user-type-selector {
  background: var(--bg-primary);
}

.user-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-type-btn i {
  font-size: 18px;
}

.user-type-btn:hover {
  background: rgba(255, 122, 0, 0.08);
  color: var(--accent-color);
}

.user-type-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .user-type-btn.active {
  background: var(--bg-accent);
  color: var(--accent-color);
}

/* =============== Auth Tabs =============== */
.auth-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 32px;
  display: flex;
  gap: 0;
}

.auth-tabs .nav-item {
  flex: 1;
}

.auth-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: -2px;
}

.auth-tabs .nav-link i {
  font-size: 18px;
}

.auth-tabs .nav-link:hover {
  color: var(--accent-color);
  background: var(--bg-accent);
}

[data-theme="dark"] .auth-tabs .nav-link:hover {
  background: var(--bg-primary);
}

.auth-tabs .nav-link.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: transparent;
}

/* =============== Form Styles =============== */
.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-form .form-label i {
  font-size: 16px;
  color: var(--text-secondary);
}

.auth-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.2s ease;
}

[data-theme="dark"] .auth-form .form-control {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.auth-form .form-control::placeholder {
  color: var(--text-light);
}

.auth-form .form-control.is-invalid {
  border-color: var(--danger-color);
}

.auth-form .form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Input Group for Password Fields */
.auth-form .input-group {
  position: relative;
  display: flex;
}

.auth-form .input-group .form-control {
  padding-right: 48px;
}

.auth-form .input-group-append {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.auth-form .toggle-password {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0 16px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.auth-form .toggle-password:hover {
  color: var(--accent-color);
}

.auth-form .toggle-password i {
  font-size: 18px;
}

/* Form Text Helpers */
.form-text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.text-danger {
  color: var(--danger-color);
  font-size: 13px;
  margin-top: 6px;
}

/* Password Hint */
.password-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-accent);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

[data-theme="dark"] .password-hint {
  background: var(--bg-primary);
}

.password-hint i {
  color: var(--success-color);
  font-size: 16px;
}

/* Location Type Info */
.location-type-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-accent);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

[data-theme="dark"] .location-type-info {
  background: var(--bg-primary);
}

.location-type-info i {
  font-size: 18px;
}

/* Custom Checkbox */
.custom-control {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 28px;
  margin-bottom: 0;
}

.custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.custom-control-label::before {
  position: absolute;
  top: 2px;
  left: -28px;
  display: block;
  width: 20px;
  height: 20px;
  content: "";
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .custom-control-label::before {
  background-color: var(--bg-primary);
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.custom-control-label::after {
  position: absolute;
  top: 6px;
  left: -24px;
  display: block;
  width: 12px;
  height: 12px;
  content: "";
  background: no-repeat 50% / 50% 50%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-control-input:checked ~ .custom-control-label::after {
  opacity: 1;
}

.custom-control-label a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.custom-control-label a:hover {
  text-decoration: underline;
}

/* Remember Me & Forgot Password */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.forgot-password-link {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color), #2952a3);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #153066, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 60, 140, 0.25);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn i {
  font-size: 18px;
}

/* Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 28px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 14px;
}

[data-theme="dark"] .auth-divider span {
  background: var(--bg-secondary);
}

/* Switch Link */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a,
.switch-tab-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.auth-switch a:hover,
.switch-tab-link:hover {
  text-decoration: underline;
}

/* =============== Step Indicator =============== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 12px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

.step.active {
  color: var(--accent-color);
}

.step.completed {
  color: var(--success-color);
}

.step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-accent);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

[data-theme="dark"] .step-number {
  background: var(--bg-primary);
}

.step.active .step-number {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.step.completed .step-number {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.step-divider {
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

.step.completed + .step-divider {
  background: var(--success-color);
}

/* =============== Custom File Upload =============== */
.custom-file {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
}

.custom-file-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(2.5rem + 2px);
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.custom-file-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: calc(2.5rem + 2px);
  padding: 12px 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .custom-file-label {
  background-color: var(--bg-primary);
}

.custom-file-input:focus ~ .custom-file-label {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.custom-file-label::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  content: "Browse";
  background-color: var(--accent-color);
  border-left: inherit;
  border-radius: 0 8px 8px 0;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* Logo Preview */
#logoPreview {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-accent);
  border-radius: 8px;
  text-align: center;
}

[data-theme="dark"] #logoPreview {
  background: var(--bg-primary);
}

#logoPreviewImg {
  max-height: 80px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =============== Alert Box =============== */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert i {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-info {
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

[data-theme="dark"] .alert-info {
  background: rgba(23, 162, 184, 0.15);
  border-color: rgba(23, 162, 184, 0.3);
}

/* =============== Navigation Buttons =============== */
.btn-outline-secondary {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-secondary:hover {
  background: var(--bg-accent);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-outline-secondary:hover {
  background: var(--bg-primary);
}

/* =============== Responsive Design =============== */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-body {
    padding: 24px;
  }

  .modal-header {
    padding: 20px 24px 12px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .user-type-selector {
    flex-direction: column;
    gap: 8px;
  }

  .user-type-btn {
    width: 100%;
  }

  .auth-tabs .nav-link {
    padding: 12px 16px;
    font-size: 14px;
  }

  .auth-tabs .nav-link span {
    display: none;
  }

  .step span {
    display: none;
  }

  .step-indicator {
    gap: 8px;
  }

  .step-divider {
    width: 20px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* =============== Animation =============== */
@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal.show .modal-content {
  animation: slideInUp 0.3s ease-out;
}

/* =============== Loading State =============== */
.auth-submit-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.auth-submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}  