/* General styling for KAM.cl portal */

/* Reset some basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #021c3b;
  color: #fff;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar li {
  margin-left: 1.5rem;
}

.navbar li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar li a:hover {
  color: #4db5ff;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background: url('cached_assets_used/hero.png') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 28, 59, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.4;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  background-color: #ff7800;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e06c00;
}

/* Section styling */
.section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #021c3b;
}

.section p {
  margin-bottom: 1rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

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

.card h3 {
  margin-bottom: 0.5rem;
  color: #021c3b;
}

.card ul {
  list-style: inside disc;
  padding-left: 1rem;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

table th {
  background-color: #021c3b;
  color: #fff;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Login form */
.login-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #021c3b;
}

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

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.75rem;
  background-color: #021c3b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover {
  background-color: #033169;
}

.error-message {
  color: #d9534f;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

/* Dashboard styling */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
  color: #021c3b;
}

.logout-button {
  padding: 0.5rem 1rem;
  background-color: #d9534f;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #c9302c;
}

.alert-card {
  background-color: #fff3cd;
  border-left: 5px solid #ffeeba;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.metrics-table {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.activities-list,
.messages-list,
.library-list,
.tools-list,
.support-list {
  margin-bottom: 2rem;
}

.activities-list li,
.messages-list li,
.library-list li,
.tools-list li,
.support-list li {
  margin-bottom: 0.5rem;
}

.message-sender {
  font-weight: bold;
  color: #021c3b;
}

.message-content {
  margin-left: 1rem;
}

.btn-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #021c3b;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-link:hover {
  background-color: #033169;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar ul {
    margin-top: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}