/* DeepASIN - Web Application Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 15px;
  color: #232F3E;
}

p {
  margin-bottom: 15px;
}

a {
  color: #FF9900;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #E88A00;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: #E88A00;
}

.btn-secondary {
  background-color: #232F3E;
  color: white;
}

.btn-secondary:hover {
  background-color: #1A2530;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 24px;
  margin-bottom: 0;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #333;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav ul li a:hover {
  color: #FF9900;
}

nav ul li a.active {
  color: #FF9900;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #FF9900;
}

.user-info {
  display: flex;
  align-items: center;
  position: relative;
}

.user-name {
  margin-right: 10px;
  font-weight: 500;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 200px;
  z-index: 10;
  margin-top: 10px;
}

.user-dropdown ul {
  list-style: none;
}

.user-dropdown ul li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.user-dropdown ul li:last-child {
  border-bottom: none;
}

.user-dropdown button {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.user-dropdown button:hover {
  color: #FF9900;
}

/* Main Content */
main {
  padding: 40px 0;
}

.dashboard-header {
  margin-bottom: 30px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  color: #FF9900;
  margin-bottom: 5px;
}

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

.recent-extractions {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recent-extractions h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #666;
}

.extension-promo {
  background-color: #232F3E;
  color: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.extension-promo h3 {
  color: white;
}

.extension-promo p {
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #232F3E;
  color: white;
  padding: 30px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: #ddd;
  margin-left: 20px;
}

.footer-links a:hover {
  color: #FF9900;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #FF9900;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    margin-bottom: 15px;
  }
  
  nav ul li {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 15px;
  }
  
  .footer-links a {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}
