/* Reset and Base Styles */
:root {
  --primary: #000000;
  --secondary: #ffffff;
  --accent: #ff3366;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-color: #222222;
  --text-light: #777777;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-mono {
  font-family: var(--font-mono);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: var(--secondary);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--dark-gray);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Navigation */
.navbar {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  background-color: var(--secondary);
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
}

/* Cards */
.card {
  background-color: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 24px;
}

/* Profile */
.profile-header {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.profile-info h1 {
  margin-bottom: 10px;
}

.profile-meta {
  color: var(--text-light);
  margin-bottom: 15px;
}

.profile-bio {
  max-width: 800px;
  line-height: 1.8;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* Admin Panel */
.admin-panel {
  background-color: var(--light-gray);
  min-height: calc(100vh - 80px);
  padding: 40px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.table th {
  font-weight: 600;
  background-color: var(--light-gray);
}

/* Centered Layout Styles */
.centered-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.centered-nav {
    margin-bottom: 2rem;
    text-align: center;
}

.centered-nav a {
    margin: 0 1rem;
    font-weight: 500;
}

.centered-main {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.centered-text {
    text-align: center;
    margin: 1.5rem 0;
}

.centered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.centered-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.centered-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.centered-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #000;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.error-message {
    color: #e53e3e;
    padding: 0.75rem;
    background: #fff5f5;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success-message {
    color: #38a169;
    padding: 0.75rem;
    background: #f0fff4;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .centered-container {
        padding: 1rem;
    }
    
    .centered-form-container {
        padding: 1.5rem;
    }
    
    .centered-grid {
        grid-template-columns: 1fr;
    }
}


/* Utilities */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.py-3 { padding: 30px 0; }

/* Dark Mode (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ffffff;
    --secondary: #121212;
    --text-color: #f5f5f5;
    --text-light: #aaaaaa;
    --light-gray: #1e1e1e;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .form-control {
    background-color: #1e1e1e;
    color: var(--text-color);
    border-color: #333;
  }
  
  .table th, .table td {
    border-color: #333;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}