/* Desktop Responsive Styles for Plug Akademi */
/* This CSS makes the mobile app look great on desktop */

/* Root container - center on large screens */
#root {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

/* Main app container - mobile-like frame on desktop */
@media (min-width: 768px) {
  #root > div {
    max-width: 480px !important;
    margin: 20px auto !important;
    min-height: calc(100vh - 40px) !important;
    border-radius: 24px !important;
    box-shadow: 
      0 25px 50px -12px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    background: #fff !important;
  }
}

/* Larger screens - slightly wider */
@media (min-width: 1024px) {
  #root > div {
    max-width: 420px !important;
    margin: 30px auto !important;
    min-height: calc(100vh - 60px) !important;
  }
  
  #root {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
}

/* Extra large screens */
@media (min-width: 1440px) {
  #root > div {
    max-width: 440px !important;
    margin: 40px auto !important;
  }
}

/* Fix icon rendering on web */
[data-testid*="icon"],
.ionicons,
svg {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Better text rendering on desktop */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fix scrolling */
html, body, #root {
  overflow-x: hidden;
}

/* Custom scrollbar for desktop */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* Phone frame effect on very large screens */
@media (min-width: 1200px) {
  #root::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: calc(100vh - 40px);
    max-height: 900px;
    border-radius: 32px;
    border: 12px solid #1a1a2e;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 
      inset 0 0 0 2px #2d2d44,
      0 30px 60px -15px rgba(0, 0, 0, 0.3);
  }
  
  #root > div {
    max-width: 436px !important;
    border-radius: 20px !important;
  }
}

/* Disable phone frame on smaller desktops */
@media (max-width: 1199px) {
  #root::before {
    display: none !important;
  }
}

/* Fix input focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Smooth transitions */
* {
  transition: box-shadow 0.2s ease;
}

/* Desktop hover effects */
@media (min-width: 768px) {
  [role="button"]:hover {
    opacity: 0.9;
  }
}
