/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  background-color: #f5f7fa;
  color: #333;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #2c3e50, #34495e);
  color: white;
  padding: 2em 1.5em;
  height: 100vh;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.sidebar h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 1.8em;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Contenedor botones */
.role-buttons {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}

.role-buttons > div {
  display: none; /* Ocultos por defecto */
  flex-direction: column;
  gap: 0.9em;
}

.role-buttons a,
.role-buttons button {
  display: block;
  background-color: #3498db;
  color: white;
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  font-size: 16px;
  user-select: none;
}

.role-buttons a:hover,
.role-buttons button:hover {
  background-color: #2980b9;
}

/* Logout */
#logout-container {
  margin-top: auto;
}

#logout-btn {
  width: 100%;
  background-color: #e74c3c;
  border: none;
  padding: 0.9em;
  font-size: 15px;
  font-weight: 600;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 7px rgba(231, 76, 60, 0.4);
  transition: background-color 0.3s ease;
  user-select: none;
}

#logout-btn:hover {
  background-color: #c0392b;
}

/* Main */
.main {
  margin-left: 260px;
  padding: 3em;
  flex: 1;
  overflow-y: auto;
  min-height: 100vh;
}

.main h1 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 1.5em;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 1em;
    position: relative;
    box-shadow: none;
  }

  .role-buttons {
    flex-direction: row;
    gap: 0.7em;
    margin-bottom: 0;
  }

  .role-buttons > div {
    display: flex !important; /* For mobile always show */
  }

  .role-buttons a,
  .role-buttons button {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
  }

  #logout-container {
    margin-left: auto;
  }

  .main {
    margin-left: 0;
    padding: 2em 1em;
  }
}
#commit-board {
  margin-top: 3em;
  background-color: #fff;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  max-height: 400px;
  overflow-y: auto;
}

#commit-board h2 {
  font-size: 22px;
  margin-bottom: 1em;
  font-weight: 700;
  color: #2c3e50;
}

.commit {
  border-bottom: 1px solid #eee;
  padding: 0.8em 0;
  font-size: 15px;
}

.commit:last-child {
  border-bottom: none;
}

.commit-message {
  font-weight: 600;
  color: #3498db;
  margin-bottom: 0.2em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.commit-message:hover {
  color: #2980b9;
}

.commit-meta {
  color: #777;
  font-size: 13px;
}
