/* CVG Web Hosting Service - Professional Styling */
:root {
  --cvg-primary: #2c3e50;
  --cvg-secondary: #3498db;
  --cvg-accent: #e74c3c;
  --cvg-success: #27ae60;
  --cvg-warning: #f39c12;
  --cvg-light: #ecf0f1;
  --cvg-dark: #34495e;
  --cvg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cvg-light);
  color: var(--cvg-dark);
  line-height: 1.6;
}

/* Header Styling */
header {
  background: var(--cvg-gradient);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo .subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: -5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--cvg-secondary);
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--cvg-primary);
}

.btn-success {
  background: var(--cvg-success);
  color: white;
}

.btn-success:hover {
  background: #219a52;
}

.btn-warning {
  background: var(--cvg-warning);
  color: white;
}

.btn-warning:hover {
  background: #e67e22;
}

.btn-danger {
  background: var(--cvg-accent);
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 0;
  background: white;
  border-radius: 10px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cvg-primary);
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-card h3 {
  color: var(--cvg-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card ul {
  list-style: none;
  padding-left: 0;
}

.feature-card li {
  padding: 0.3rem 0;
  color: #666;
}

.feature-card li:before {
  content: "✓ ";
  color: var(--cvg-success);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Auth Forms */
.auth-section {
  display: none;
  background: white;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 2rem auto;
}

.auth-section.active {
  display: block;
}

.auth-section h2 {
  text-align: center;
  color: var(--cvg-primary);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cvg-dark);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cvg-secondary);
}

/* Dashboard */
.dashboard {
  display: none;
}

.dashboard.active {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.user-info h3 {
  color: var(--cvg-primary);
  margin-bottom: 0.5rem;
}

.user-info p {
  color: #666;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card h4 {
  font-size: 2rem;
  color: var(--cvg-secondary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: #666;
}

.dashboard-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--cvg-secondary);
  border-bottom-color: var(--cvg-secondary);
}

.tab-btn:hover {
  color: var(--cvg-secondary);
}

.tab-content {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.tab-content.active {
  display: block;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background: var(--cvg-light);
  font-weight: 600;
  color: var(--cvg-primary);
}

table tr:hover {
  background: rgba(52, 152, 219, 0.1);
}

/* File Manager */
.file-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.file-upload {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.file-item {
  background: var(--cvg-light);
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-item:hover {
  background: #d5dbdb;
  transform: translateY(-2px);
}

.file-item .file-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--cvg-secondary);
}

.file-item .file-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.file-item .file-size {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .auth-buttons {
    order: 3;
  }

  main {
    padding: 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .dashboard-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .file-actions {
    flex-direction: column;
  }

  .file-upload {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  z-index: 2000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: var(--cvg-success);
}

.notification.error {
  background: var(--cvg-accent);
}

.notification.warning {
  background: var(--cvg-warning);
}

/* Hide elements */
.hidden {
  display: none !important;
}

/* Status indicators */
.status {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status.active {
  background: #d4edda;
  color: #155724;
}

.status.inactive {
  background: #f8d7da;
  color: #721c24;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

/* Progress bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--cvg-secondary);
  transition: width 0.3s ease;
}

/* Code editor styling */
.code-editor {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 300px;
  resize: vertical;
}

/* Action buttons in cards */
.card-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
