* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  min-height: 100vh;
  padding: 20px;
  background-image: url("./images/Google-IP.jpg");
}

header {
  text-align: center;
  margin: 50px 30px;
  color: #e3f9ff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.subtitle {
  font-weight: 500;
  font-size: 1.8em;
}

.main-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
}

.lookup-section {
  margin-bottom: 20px;
}

.lookup-section h2 {
  color: black;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

input[type="text"] {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #215481;
}

button {
  padding: 15px 30px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary {
  background: #215481;
  color: white;
}

.btn-primary:hover {
  background: #3c8ace;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.loading {
  text-align: center;
  padding: 30px;
  display: none;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #215481;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  background: rgb(221, 39, 39);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.result-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #215481;
}

.result-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
}

.result-value {
  font-size: 18px;
  color: #333;
  font-weight: 700;
}

.fraud-score {
  font-size: 48px;
  text-align: center;
  margin: 20px 0;
  font-weight: 700;
}

.score-low {
  color: #4caf50;
}
.score-medium {
  color: #ff9800;
}
.score-high {
  color: #f44336;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.badge-success {
  background: #4caf50;
}
.badge-warning {
  background: #ff9800;
}
.badge-danger {
  background: #f44336;
}

.history-section {
  margin-top: 40px;
}

.history-section h2 {
  color: #333;
  margin-bottom: 20px;
}

.history-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.history-controls input,
.history-controls select {
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.history-controls input {
  flex: 1;
  min-width: 200px;
}

.sort-buttons {
  display: flex;
  gap: 5px;
}

.btn-small {
  padding: 10px 15px;
  font-size: 14px;
}

.history-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #215481;
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

tr:hover {
  background: #fff;
  cursor: pointer;
}

.expandable-row {
  background: #fff !important;
}

.details-cell {
  padding: 20px;
  background: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  background: white;
  padding: 10px;
  border-radius: 5px;
  border-left: 3px solid #215481;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-text {
  font-size: 64px;
  margin-bottom: 20px;
}

.stats-bar {
  display: flexg;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #215481;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.btn-clear {
  background: rgb(255, 83, 83);
  color: white;
}

.btn-clear:hover {
  background: red;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8em;
  }

  .input-group {
    flex-direction: column;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .history-controls {
    flex-direction: column;
  }

  .sort-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 10px;
  }
}
