/* Web-specific styles for Jewellery Manager */

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f8fafc;
  overflow-x: hidden;
}

/* Flutter Web specific styles */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 10000;
  transition: opacity 0.5s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Web-specific animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Web-specific utility classes */
.web-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.web-slide-in {
  animation: slideInRight 0.4s ease-out;
}

.web-pulse {
  animation: pulse 2s infinite;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .web-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .web-hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .web-hide-desktop {
    display: none !important;
  }
}

/* Web-specific card styles */
.web-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.web-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Web-specific button styles */
.web-button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.web-button-primary {
  background: #667eea;
  color: white;
}

.web-button-primary:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.web-button-secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.web-button-secondary:hover {
  background: #f1f5f9;
  border-color: #d1d5db;
}

/* Web-specific input styles */
.web-input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.web-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Web-specific table styles */
.web-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.web-table th {
  background: #f8fafc;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.web-table td {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #6b7280;
}

.web-table tr:hover {
  background: #f9fafb;
}

/* Web-specific navigation styles */
.web-nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.web-nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
}

.web-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.web-nav-item {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.web-nav-item:hover {
  color: #667eea;
  background: #f0f4ff;
}

.web-nav-item.active {
  color: #667eea;
  background: #f0f4ff;
}

/* Web-specific sidebar styles */
.web-sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid #e5e7eb;
  height: 100vh;
  overflow-y: auto;
}

.web-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.web-sidebar-menu {
  padding: 16px 0;
}

.web-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
}

.web-sidebar-item:hover {
  color: #667eea;
  background: #f0f4ff;
}

.web-sidebar-item.active {
  color: #667eea;
  background: #f0f4ff;
  border-right: 3px solid #667eea;
}

/* Web-specific grid styles */
.web-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.web-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.web-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.web-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Web-specific responsive utilities */
.web-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.web-section {
  margin-bottom: 48px;
}

.web-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.web-section-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

/* Web-specific loading states */
.web-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Web-specific status indicators */
.web-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.web-status-success {
  background: #dcfce7;
  color: #166534;
}

.web-status-warning {
  background: #fef3c7;
  color: #92400e;
}

.web-status-error {
  background: #fee2e2;
  color: #dc2626;
}

.web-status-info {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Web-specific modal styles */
.web-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.web-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.web-modal-header {
  padding: 24px 24px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.web-modal-body {
  padding: 0 24px 24px;
}

.web-modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Web-specific toast notifications */
.web-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  min-width: 300px;
  z-index: 1001;
  animation: slideInRight 0.3s ease-out;
}

.web-toast-success {
  border-left: 4px solid #10b981;
}

.web-toast-error {
  border-left: 4px solid #ef4444;
}

.web-toast-warning {
  border-left: 4px solid #f59e0b;
}

.web-toast-info {
  border-left: 4px solid #3b82f6;
}

/* Web-specific print styles */
@media print {
  .web-no-print {
    display: none !important;
  }
  
  .web-print-only {
    display: block !important;
  }
  
  body {
    background: white !important;
  }
  
  .web-card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }
}

/* Web-specific dark mode support */
@media (prefers-color-scheme: dark) {
  .web-auto-dark {
    background: #1f2937;
    color: #f9fafb;
  }
  
  .web-auto-dark .web-card {
    background: #374151;
    color: #f9fafb;
  }
  
  .web-auto-dark .web-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
}

/* Web-specific accessibility improvements */
.web-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.web-focus-visible:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Web-specific performance optimizations */
.web-gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

.web-smooth-scroll {
  scroll-behavior: smooth;
}

/* Web-specific layout utilities */
.web-flex {
  display: flex;
}

.web-flex-col {
  flex-direction: column;
}

.web-items-center {
  align-items: center;
}

.web-justify-center {
  justify-content: center;
}

.web-justify-between {
  justify-content: space-between;
}

.web-gap-4 {
  gap: 1rem;
}

.web-gap-8 {
  gap: 2rem;
}

.web-p-4 {
  padding: 1rem;
}

.web-p-8 {
  padding: 2rem;
}

.web-m-4 {
  margin: 1rem;
}

.web-m-8 {
  margin: 2rem;
}

