/* styles.css */
.my-custom-class {
    background-color: yellow;
    border: 2px solid red;
    color: blue;
  }

/* Navbar gradient background */
.navbar.navbar-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 1rem;
}

/* Help Modal Styles */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.close {
  font-size: 1.5rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

.close:hover,
.close:focus,
.close-clear-modal:hover,
.close-clear-modal:focus {
  color: #000;
}

.close-clear-modal {
  font-size: 1.5rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

.modal-body {
  padding: 1rem;
}

.modal-body h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modal-body ul {
  padding-left: 0;
}

.modal-body li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

/* Messages Panel Styles */
#messages {
  padding: 8px;
  margin: 0;
}

.application-item {
  padding: 8px 12px 8px 12px;
  margin-bottom: 6px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.application-item.success {
  padding: 8px 112px 8px 12px;
}

.application-item.info {
  padding: 8px 112px 8px 12px;
  background-color: #f5f9ff;
  border-color: #cfe2ff;
}

.application-item:hover {
  border-color: #667eea;
}

.status-indicator {
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.status-indicator i {
  display: inline-block;
  vertical-align: middle;
}

.application-item.pending .status-indicator i {
  color: #ff9800;
}

.application-item.success .status-indicator i {
  color: #28a745;
}

.application-item.info .status-indicator i {
  color: #0d6efd;
}

.application-item.failed .status-indicator i {
  color: #dc3545;
}

.content-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  min-height: 20px;
}

.timer {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.72rem;
  color: #666;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  padding: 2px 4px;
  border-radius: 3px;
}

.application-item.success .timer {
  right: 112px;
}

.application-item.info .timer {
  right: 112px;
  color: #0d6efd;
  font-weight: 600;
}

.application-item.pending .timer {
  color: #ff6b00;
  font-weight: 700;
}

.timer.completed {
  color: #28a745;
  font-weight: 600;
}

.application-item.failed .timer {
  color: #dc3545;
  font-weight: 600;
}

.action-button {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: transparent;
  border: none;
  border-left: 1px solid #e0e0e0;
  color: #999;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.application-item.success .action-button {
  display: flex;
}

.application-item.info .action-button {
  display: flex;
}

.screenshot-button {
  right: 50px;
  border-radius: 0;
}

.screenshot-button-content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}

.screenshot-upload-count {
  font-size: 0.62rem;
  font-weight: 600;
  color: inherit;
}

.question-button {
  right: 0;
  border-radius: 0 6px 6px 0;
}

.action-button:hover {
  background-color: #f5f5f5;
  color: #667eea;
}

.screenshot-button:hover {
  color: #28a745;
}

.question-button:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0056b3;
  transform: scale(1.05);
}

.question-button:active {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  color: #003d82;
  transform: scale(0.98);
}

.action-button i {
  pointer-events: none;
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.application-item.pending .status-indicator {
  color: #ffc107;
  animation: pulse 1.5s ease-in-out infinite;
}

.application-item.success .status-indicator {
  color: #28a745;
}

.application-item.info .status-indicator {
  color: #0d6efd;
}

.application-item.failed .status-indicator {
  color: #dc3545;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.application-item.slide-in {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    margin-bottom: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

.company-name {
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
  max-width: calc(100% - 90px);
}

.job-title {
  color: #666666;
  font-size: 0.75rem;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-title.error-message {
  color: #dc3545;
  font-weight: 500;
}