/* VALZZ WEB PRO - Styling
   ©VALZZ, NO RINEM!! */

:root {
  --primary: #6C63FF;
  --secondary: #4CAF50;
  --danger: #f44336;
  --warning: #ff9800;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --white: #ffffff;
  --gray: #95a5a6;
  --success: #27ae60;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  color: var(--primary);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: var(--light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 500;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #5a52d5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #45a049;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
  display: block;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: var(--white);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Pricing Section */
.pricing {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.pricing h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.pricing-card {
  background: var(--white);
  color: var(--dark);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  border: 3px solid var(--primary);
}

.pricing-card.premium {
  border: 3px solid gold;
}

.pricing-card .badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--danger);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Auth Pages */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light);
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

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

.back-home {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Messages */
.error-message {
  background: #ffebee;
  color: var(--danger);
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--danger);
}

.success-message {
  background: #e8f5e9;
  color: var(--success);
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--success);
}

/* Dashboard */
.dashboard-page {
  background: var(--light);
}

.dashboard-nav {
  background: var(--dark);
  margin-bottom: 0;
}

.dashboard-nav .nav-brand h1 {
  color: var(--white);
}

.nav-user {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-role {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.user-name {
  color: var(--white);
  font-weight: 500;
}

.dashboard-container {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 250px;
  background: var(--white);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  padding: 2rem 0;
}

.sidebar-header {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  color: var(--primary);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
  background: var(--light);
  border-left-color: var(--primary);
  padding-left: 2rem;
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
}

.welcome-section h1 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.role-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
}

/* Page Section */
.page-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-section h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Form Card */
.form-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light);
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* Result Box */
.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  border: 2px dashed var(--light);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--white);
}

.data-table thead {
  background: var(--primary);
  color: var(--white);
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light);
}

.data-table tbody tr:hover {
  background: var(--light);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-owner_web {
  background: gold;
  color: var(--dark);
}

.badge-owner_am {
  background: var(--danger);
  color: var(--white);
}

.badge-admin {
  background: var(--primary);
  color: var(--white);
}

.badge-reseller {
  background: var(--secondary);
  color: var(--white);
}

.badge-user {
  background: var(--gray);
  color: var(--white);
}

/* Info Card */
.info-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.info-card p {
  margin-bottom: 0.5rem;
}

.info-card strong {
  color: var(--primary);
}

/* Button Group */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* Responsive */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

/* Print styles */
@media print {
  .navbar,
  .sidebar,
  .btn,
  .footer {
    display: none;
  }
}
