/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* App container for sidebar layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  padding: 30px 25px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header h2 i {
  color: #3498db;
}

.tab-list {
  list-style: none;
  padding: 20px 0;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  color: #7f8c8d;
  font-weight: 500;
}

.tab-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border-left-color: #667eea;
}

.tab-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-left-color: #fff;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.tab-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.tab-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* Main container */
.main-container {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
}

/* Tab content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Header styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header h1 i {
  color: #e74c3c;
  font-size: 2rem;
}

.header-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.header-meta p {
  color: #7f8c8d;
  font-weight: 500;
}

/* Main content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Section styles */
section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

section h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

section h2 i {
  color: #3498db;
}

section h3 {
  color: #34495e;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 30px;
}

/* Summary cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
}

.card-content .value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.card-content .location {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.image-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  border: 2px dashed #dee2e6;
}

.image-placeholder {
  height: 250px;
  background: linear-gradient(45deg, #f1f3f4 25%, transparent 25%), 
              linear-gradient(-45deg, #f1f3f4 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f1f3f4 75%), 
              linear-gradient(-45deg, transparent 75%, #f1f3f4 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: all 0.3s ease;
}

.image-placeholder:hover {
  background: linear-gradient(45deg, #e9ecef 25%, transparent 25%), 
              linear-gradient(-45deg, #e9ecef 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #e9ecef 75%), 
              linear-gradient(-45deg, transparent 75%, #e9ecef 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.image-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #adb5bd;
}

.image-placeholder p {
  font-weight: 500;
}

/* Table styles */
.table-container {
  margin-bottom: 40px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

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

th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  font-weight: 500;
}

tr:hover {
  background-color: #f8f9fa;
}

tr:last-child td {
  border-bottom: none;
}

/* Risk section */
.risk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.risk-card {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.risk-card h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.risk-card ul {
  list-style: none;
  padding: 0;
}

.risk-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.risk-card li:last-child {
  border-bottom: none;
}

.risk-card li:before {
  content: "⚠️";
  margin-right: 10px;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 30px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
  color: #7f8c8d;
  font-weight: 500;
}

.footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }
  
  .main-container {
    margin-left: 250px;
  }
  
  .summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .main-container {
    margin-left: 0;
  }
  
  .container {
    padding: 15px;
  }
  
  .header {
    padding: 20px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .header-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  section {
    padding: 20px;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .risk-cards {
    grid-template-columns: 1fr;
  }
  
  th, td {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .tab-item {
    padding: 12px 20px;
  }
  
  .tab-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .summary-card {
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    margin-bottom: 15px;
  }
  
  .sidebar-header {
    padding: 20px 15px 15px;
  }
  
  .sidebar-header h2 {
    font-size: 1.2rem;
  }
  
  .tab-item {
    padding: 10px 15px;
  }
  
  .tab-item i {
    font-size: 1rem;
  }
  
  .tab-item span {
    font-size: 0.85rem;
  }
}

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

section {
  animation: fadeInUp 0.6s ease-out;
}

.summary-card {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.1s;
}

.summary-card:nth-child(2) {
  animation-delay: 0.2s;
}

.summary-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
} 
