/* =========================
   Base Theme
   ========================= */
body {
    background: #0e1321;
    font-family: Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
}

/* Generic frame  */
.frame {
    background: #1e2745;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Inputs */
.input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #353d58;
    background: #353d58;
    color: white;
    outline: none;
    transition: border 0.3s ease;
    box-sizing: border-box;
}
.input:focus {
    border: 1px solid #3e64ff;
}

/* Buttons */
.button {
    padding: 10px 20px;
    margin: 0;
    border-radius: 8px;
    border: none;
    background: #3e64ff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.button:hover {
    background: #5b7dff;
}
.button:active {
    background: #2c4ed6;
}
.button:disabled {
    background: #2a3050;
    color: #777;
    cursor: not-allowed;
}
.button-link {
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
    display: inline-block;
}

/* Error message */
.error-message {
    background: #2a3050;
    color: #ff8080;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Error blink effect */
@keyframes blink-red {
    0%   { background-color: #ff4d4d; }
    100%  { background-color: #353d58; }
}

li.error-blink {
    animation: blink-red 0.6s ease;
}


/* =========================
   Layout: Centered Page (Login, 403)
   ========================= */
.center-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.center-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.center-frame {
    width: 320px;
    padding: 30px;
    text-align: center;
}
.center-title {
    margin-bottom: 20px;
    font-size: 24px;
}

/* =========================
   Layout: Control Panel
   ========================= */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin: 20px;
    background: #1e2745;
    border-radius: 10px;
}

/* Left, center, right alignment */
.header-left {
    margin: 0;
    flex: 3;
}
.header-right {
    display: flex;
    flex: 2;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.header-right .button {
    width: 60px;
    font-size: 12px;
    line-height: 1.2em;
    padding: 5px 10px;
}
.container {
    display: flex;
    margin: 20px;
    gap: 20px;
}
.card {
    background: #1e2745;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
}
.card.small {
    flex: 0.4;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    padding: 8px;
    background: #353d58;
    margin-bottom: 6px;
    border-radius: 6px;
    cursor: pointer;
}
li:hover {
    background: #5b7dff;
}
li.selected-server, li.selected-user {
    background: #3e64ff;
    font-weight: bold;
    cursor: default;
}
li.passive {
    cursor: pointer;
    pointer-events: none;
}

/* =========================
   User Management
   ========================= */
.user-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    }

.user-details-grid {
  display: flex;
  gap: 20px;
}

.user-form {
  flex: 2;  /* wider column */
}

.user-servers {
  flex: 1;  /* narrower column */
  background: #2a3050;
  border-radius: 8px;
  padding: 10px;
}

.user-servers h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.small-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}
.user-details-grid .button,
.user-details-header .button {
    width: auto;
    font-size: 14px;
    padding: 8px 16px;
}


/* =========================
   Skeleton Loader
   ========================= */
.skeleton {
    background: #353d58;
    position: relative;
    overflow: hidden;

    
}
.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    100% { left: 100%; }
}

/* Variants */
li.skeleton {
    height: 18px;
    margin: 0 0 6px 0;
    pointer-events: none;
    cursor: default;
}
span.skeleton {
    vertical-align: text-bottom;
    display: inline-block;
    height: 17px;
    width: 12ch;
    border-radius: 4px;
    
}
h2.skeleton {
    height: 28px;
    border-radius: 4px;
    /* padding: 0;
    margin: 0;
    margin-top: 0.83em;
    margin-bottom: 0.83em; */
}
h3.skeleton {
    height: 22px;
    border-radius: 4px;
    /* padding: 0;
    margin: 0;
    margin-top: 1em;
    margin-bottom: 1em; */
}
button.skeleton {
    min-height: 19px;
    width: 14ch;
    pointer-events: none;
    cursor: default;
}