/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* Studio Container */
.studio-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.studio-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.studio-logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.studio-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link.active {
  color: #667eea;
  font-weight: 600;
}

.login-btn, .logout-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.login-btn:hover, .logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Content Area */
.studio-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.login-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Iframe Container */
.iframe-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  background: white;
}

#sso-iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

.login-actions {
  padding: 1.5rem 2rem;
  text-align: center;
  background: #fff;
}

.done-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.done-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.done-button:active {
  transform: translateY(0);
}

.login-footer {
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.login-footer p {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Footer */
.studio-footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.studio-footer p {
  color: #666;
  font-size: 0.9rem;
}

/* Dashboard Styles */
.login-prompt {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.prompt-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.login-prompt h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.login-prompt p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 2rem;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-button .arrow {
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.login-button:hover .arrow {
  transform: translateX(4px);
}

.features-list {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #555;
}

.feature-item .check {
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.2rem;
}

.dashboard-welcome {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-welcome h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dashboard-welcome .subtitle {
  color: #666;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.dashboard-card p {
  color: #666;
  margin-bottom: 1rem;
}

.dashboard-card .card-stats {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
}

.dashboard-info {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-info h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.info-box p {
  color: #555;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.status-badge {
  background: #4CAF50;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .studio-header {
    flex-direction: column;
    gap: 1rem;
  }

  .studio-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-container {
    margin: 1rem;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .login-prompt {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    margin: 1rem;
  }

  .dashboard-welcome,
  .dashboard-info {
    margin: 1rem;
  }
}
