/* 
 * IntelliCommerce Website - App Page Styles
 * Simplified CSS for the app/verification page 
 */

/* Base Styles */
:root {
  /* Primary Colors */
  --primary-dark: #1a1a2e;
  --primary-medium: #16213e;
  --primary-light: #0f3460;
  
  /* Accent Colors */
  --accent-bright: #e94560;
  --accent-gradient-start: #ff7eb9;
  --accent-gradient-end: #7000ff;
  
  /* Text Colors */
  --text-light: #ffffff;
  --text-light-muted: #adbac7;
  --text-dark: #0d1117;
  --text-dark-muted: #4d5566;
  
  /* Interface Colors */
  --success-color: #3fb950;
  --warning-color: #d29922;
  --error-color: #f85149;
  --info-color: #58a6ff;
  
  /* Dimensions */
  --nav-height: 60px;
  --footer-height: 80px;
  --content-max-width: 1200px;
}

/* Dark/Light Mode Colors */
body.dark-mode {
  --bg-primary: var(--primary-dark);
  --bg-secondary: var(--primary-medium);
  --text-primary: var(--text-light);
  --text-secondary: var(--text-light-muted);
}

body.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-dark-muted);
}

/* Base Elements */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
}

/* App Page Layout */
.app-wrapper {
  min-height: calc(100vh - var(--nav-height) - var(--footer-height));
  padding: 40px 0;
}

/* Auth Section */
.auth-section {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.auth-buttons {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.auth-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-weight: 500;
}

/* RMF Section */
.rmf-section {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rmf-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
  margin-bottom: 24px;
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--accent-bright);
  border-bottom: 3px solid var(--accent-bright);
}

.tab-content {
  display: none;
  padding: 20px 0;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid rgba(127, 127, 127, 0.3);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-gradient {
  background: linear-gradient(90deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: white;
}

.btn-gradient:hover {
  background: linear-gradient(90deg, var(--accent-gradient-end), var(--accent-gradient-start));
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-bright);
  color: var(--accent-bright);
}

.btn-outline:hover {
  background-color: var(--accent-bright);
  color: white;
}

/* Message Styles */
.success-message {
  background-color: rgba(63, 185, 80, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.error-message {
  background-color: rgba(248, 81, 73, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.warning-message {
  background-color: rgba(210, 153, 34, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.info-message {
  background-color: rgba(88, 166, 255, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

.processing-message {
  background-color: rgba(127, 127, 127, 0.1);
  color: var(--text-secondary);
  border-left: 4px solid var(--text-secondary);
}

/* Report Tables */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.report-table th, .report-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}

.report-table th {
  font-weight: 600;
  background-color: rgba(127, 127, 127, 0.05);
}

.report-table tr:hover {
  background-color: rgba(127, 127, 127, 0.05);
}

/* Loading Indicator */
.loading {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: var(--text-secondary);
}

.loading::after {
  content: "...";
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

/* Notification System */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.notification {
  margin-bottom: 12px;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slide-in 0.3s ease forwards;
  max-width: 300px;
}

.notification.hiding {
  animation: slide-out 0.3s ease forwards;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-buttons {
    flex-direction: column;
  }
  
  .tab-navigation {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab-button {
    border-bottom: 1px solid rgba(127, 127, 127, 0.2);
  }
  
  .report-table {
    font-size: 14px;
  }
  
  .report-table th, .report-table td {
    padding: 8px;
  }
}
