/* Modern Style CSS for SRO HERO Website */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Loại bỏ font tùy chỉnh có thể gây lỗi hiển thị */
/* @font-face VnTahoma bị tạm thời vô hiệu hóa */
/*
@font-face {
  font-family: 'VnTahoma';
  src: url('../VnTahoma.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

body {
  font-family: 'Segoe UI', Tahoma, Arial, 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header Styles */
.site-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  max-height: 60px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-left: 1rem;
  /* SRO TRƯỜNG AN */
}

/* Navigation */
.main-nav {
  background-color: var(--dark-bg);
}

.main-nav .nav-link {
  color: white;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background-color: var(--secondary-color);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg_header.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

/* Content Cards */
.content-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

/* Rankings Table */
.rankings-table {
  width: 100%;
}

.rankings-table th {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem;
}

.rankings-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #dee2e6;
}

.rankings-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.rankings-table tr:hover {
  background-color: #e9ecef;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

/* Login/Register Forms */
.auth-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-control {
  border-radius: var(--border-radius);
  padding: 0.8rem;
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .site-title {
    font-size: 1.4rem;
  }
}

/* Custom Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Loading Indicator */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}