/* ========== GLOBAL BACKGROUND ========== */
.glass-bg {
    position: relative;
    min-height: 90vh;
    padding-top: 0px; /* navbar height */
    overflow: hidden;
    z-index: 0;
}

/* Background image layer */
.glass-bg::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #1a1a1a url("../imgs/hacker.png") no-repeat center/cover;
    z-index: -2;
}

/* Dark overlay layer */
.glass-bg::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.40);
    z-index: -1;
}


/* ========== NAVBAR ========== */
.glass-navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(17, 17, 17, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.15);
    z-index: 1000;
}

.glass-navbar .nav-link,
.glass-navbar .navbar-brand {
    color: #eee !important;
    transition: color .25s;
}
.glass-navbar .nav-link:hover,
.glass-navbar .nav-link:focus {
    color: #ff6666 !important;
}

.glass-navbar .navbar-toggler {
    border: none;
}
.glass-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,\
      <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='%23eee'>\
      <path stroke='rgba(255,255,255,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

/* prevent content from hiding under navbar */
body {
    padding-top: 30px;
}

/* ========== GLASS CARD - Login / Panels ========== */
.glass-card {
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-fill: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.20);
    padding: 60px 40px;
    width: 100%;
    max-width: 420px;
    animation: cardPop 0.9s ease;
    z-index: 10;
}

/* ========== WIDE PANEL ========== */
.wide-glass-card {
    width: 70%;
    height: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
    color: #fff;
    overflow-y: auto;
}

/* ========== FORMS ========== */
.glass-card .form-group {
    margin-bottom: 18px;
}
.glass-card label,
.glass-form-group label {
    color: #ccc;
    font-weight: 600;
}
.glass-card input {
    background: #333;
    color: #fff;
    border: none;
    width: 100%;
    border-radius: 6px;
    padding: 10px 12px;
    transition: 0.25s;
}
.glass-card input:focus {
    outline: none;
    background: #444;
    box-shadow: 0 0 6px #ff0000;
}

/* ========== BUTTONS ========== */
.glass-btn,
.glass-card button {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}
.glass-btn:hover,
.glass-card button:hover {
    background: #cc0000;
    transform: scale(1.02);
}

/* ========== LINKS & MESSAGES ========== */
.glass-card a {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #aaa;
    font-size: 14px;
}

.glass-card a:hover {
    color: #ff0000;
}
.glass-card .messages p {
    margin: 6px 0;
    font-size: 14px;
}
.glass-card .alert-success {
    color: #8dff8d;
}
.glass-card .alert-error,
.glass-card .alert-danger {
    color: #ff6d6d;
}

/* @keyframes cardPop {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
} */

/* ========== AVATARS ========== */
.glass-avatar-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.15);
}

.glass-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

.placeholder-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== TABLE ========== */
.glass-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    margin-top: 1rem;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.08);
    table-layout: fixed;
}

.glass-table thead {
    background: rgba(255, 0, 0, 0.15);
}

.glass-table th,
.glass-table td {
    padding: 12px 16px;
    text-align: left;
    color: #eee;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    word-break: break-word;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

.glass-table a {
    color: #ff6666;
    text-decoration: none;
    font-weight: 500;
}
.glass-table .link-active{
    color: #8dff8d;
    text-decoration: none;
    font-weight: 500;
}

.glass-table a:hover {
    color: #ff0000;
}

/* ========== CHECKBOX LABEL ========== */
.glass-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #eee;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.glass-check-label:hover {
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    transform: scale(1.03);
}

.glass-check-label input[type="checkbox"] {
    accent-color: #ff0000;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.glass-check-label input[type="checkbox"]:checked {
    transform: scale(1.2);
}

.glass-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #eee;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.glass-check-label:hover {
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    transform: scale(1.03);
}

.glass-check-label input[type="checkbox"] {
    accent-color: #ff0000;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.glass-check-label input[type="checkbox"]:checked {
    transform: scale(1.2);
}

.glass-form-group input[type="text"],
.glass-form-group input[type="password"],
.glass-form-group input[type="email"],

.glass-form-group textarea {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  transition: 0.3s;
}
.glass-form-group input:focus,
.glass-form-group textarea:focus {
  background: #444;
  outline: none;
  box-shadow: 0 0 8px #ff0000;
}
