/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Variables */
:root {
  --primary-color: #2e86de;
  --secondary-color: #54a0ff;
  --danger-color: #ff6b6b;
  --success-color: #1dd1a1;
  --dark-color: #2f3640;
  --light-color: #f5f6fa;
  --gray-color: #a4b0be;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* App Container */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow-x: hidden;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.menu-icon {
  font-size: 20px;
  cursor: pointer;
}

/* Search Section */
.search-section {
  padding: 20px;
  background-color: var(--primary-color);
  position: relative;
}

.search-container {
  display: flex;
  background-color: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
}

/* Result Section */
.result-section {
  padding: 20px;
  display: none;
}

.result-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.number-display {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.name-display {
  font-size: 20px;
  margin-bottom: 5px;
}

.location-display {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.spam-score {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.spam-low {
  background-color: rgba(29, 209, 161, 0.2);
  color: var(--success-color);
}

.spam-medium {
  background-color: rgba(255, 165, 0, 0.2);
  color: orange;
}

.spam-high {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--danger-color);
}

.carrier-info {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.carrier-item {
  text-align: center;
  flex: 1;
}

.carrier-label {
  font-size: 12px;
  color: var(--gray-color);
}

.carrier-value {
  font-weight: bold;
  margin-top: 5px;
}

/* Recent Searches */
.recent-section {
  padding: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-all {
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
}

.recent-list {
  list-style: none;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-number {
  font-weight: bold;
}

.recent-name {
  color: var(--gray-color);
  font-size: 14px;
}

.recent-spam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.spam-indicator-low {
  background-color: var(--success-color);
}

.spam-indicator-medium {
  background-color: orange;
}

.spam-indicator-high {
  background-color: var(--danger-color);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background-color: white;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  text-align: center;
  color: var(--gray-color);
  cursor: pointer;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.nav-label {
  font-size: 12px;
}

/* Loading Spinner */
.spinner {
  display: none;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-color);
  display: none;
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: white;
  z-index: 200;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
  left: 0;
}

.menu-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin-right: 15px;
}

.user-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.user-email {
  font-size: 12px;
  opacity: 0.8;
}

.close-menu {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 20px;
  cursor: pointer;
}

.menu-items {
  list-style: none;
  padding: 20px 0;
}

.menu-item {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #f5f6fa;
}

.menu-icon {
  margin-right: 15px;
  color: var(--gray-color);
}

.menu-text {
  font-size: 16px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.overlay.active {
  display: block;
}

/* Responsive */
@media (max-width: 500px) {
  .app-container {
    box-shadow: none;
  }
}
