:root {
    color-scheme: dark;
}

.skip-link {
    position: absolute;
    left: 0;
    top: -20rem;

    width: 100%;
    padding-block: .5rem;

    background-color: tomato;
    color: whitesmoke;
    text-align: center;

    &:focus-visible {
        top: 0;
    }
}

.border-transparent {
    border-color: transparent;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #181818;
  padding: 20px;
}

.logo {
  margin-bottom: 30px;
  text-align: center;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 11px;
  color: #bdbdbd;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #242424;
  color: #fff;
}

/* Main */
.main {
  flex: 1;
  padding: 25px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.user {
  background: #242424;
  padding: 12px;
  border-radius: 11px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.card {
  background: #1e1e1e;
  border-radius: 11px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.card i {
  font-size: 26px;
  color: #9e9e9e;
}

.card span {
  font-size: 22px;
  font-weight: bold;
}

/* Panels */
.panels {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.panel {
  background: #1e1e1e;
  border-radius: 11px;
  padding: 20px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

#usersChart {
    background-color: #242424;
}


.user-card {
    max-width: 420px;
    background: #424242;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    padding: 24px;
 
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #f5f5f5;
}

.user-role {
    background: #2a2a2a;
    color: #d4d4d8;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    color: #a1a1aa;
    font-size: 0.85rem;
}

.value {
    color: #e5e5e5;
    font-weight: 500;
}

.plan {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* diferencias solo por contraste */
.plan.active {
    background: #3a3a3a;
    color: #f5f5f5;
}

.plan.inactive {
    background: #1f1f1f;
    color: #9ca3af;
}


#login {
  background-color: #1e1e1e;
  height: 100vh;
  > div:first-child {
    background-color: #2e2e2e;
    height: 100%;
    width: 50%;
    img {
      width: 300px;
    }
  }
  > div:last-child {
    height: 100%;
    width: 50%;
    form {
      background-color: white;
      padding: 4rem;
      border-radius: 11px;
      input {
        border-radius: 11px;
        background-color: #f5f5f5;
        border: none;
        padding: .5rem;
        box-shadow: 0px 3px 4px rgb(201, 201, 201);
        color: black;
        &:focus {
          outline: none;
        }
      }
      button {
        padding: .5rem;
        border-radius: 11px;
        border: none;
        &:hover {
          opacity: .85;
        }
      }
      span {
        font-size: 1.5rem;
        font-weight: bold;
      }
    }
  }
}

#nav {
  a {
    border-radius: 11px;
    margin: 1rem;
    border: none;
  }
  .list-group-item.active {
    background-color: white;
    color: #2b3035;
  }
}

#main {
  background-color: #181818;
}