/* Common CSS Variables */
:root {
  --primary-color: #3498db;
  --accent-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --warning-color: #e74c3c;
}

/* Common Base Styles */
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
  color: var(--dark-color);
}

html {
  scroll-behavior: smooth;
}

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

/* Common Button Styles */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2980b9;
}

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

.btn-accent:hover {
  background: #27ae60;
}

.btn-danger {
  background: var(--warning-color);
}

.btn-danger:hover {
  background: #c0392b;
}

/* Common Footer Styles */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

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

/* Common Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Common Alert/Message Styles */
.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Common Card Styles */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}
