body a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 16px;

}

body a:hover {
    color: #ffba08;
    text-decoration: none;
    
}



.hero {
    text-align: center;
    padding: 50px 20px;
    background: #222;
	margin-top: 60px; /* Same as body padding */
}

.hero h1 {

    color: #ffba08;
    font-size: 48px;
    margin: 0;
}

@font-face {
    font-family: 'LifeCraft';
    src: url('/assets/fonts/LifeCraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hero p {
    font-size: 18px;
    color: #ddd;
    margin: 10px 0 20px;
}

.cta-button {
    display: inline-block;
    background: #ffba08;
    color: #121212;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.cta-button:hover {
    background: #e09b07;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #1e1e1e;
    color: #888;
    font-size: 14px;
}


footer {
    background-color: #1e1e1e;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    border-top: 2px solid #444;
}

footer a {
    color: #ffba08;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}


.dashboard {
    text-align: center;
 
    color: #e0e0e0;
	margin-top: 60px; /* Same as body padding */
}

.dashboard h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffba08;
}

.dashboard p {
    font-size: 18px;
    margin: 10px 0;
}

.dashboard-actions {
    margin-top: 30px;
}

.dashboard-actions .btn {
    display: inline-block;
    background-color: #ffba08;
    color: #121212;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.dashboard-actions .btn:hover {
    background-color: #e09b07;
}
.account-settings {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    color: #e0e0e0;
	
}

.account-settings h2, .account-settings h3 {
    color: #ffba08;
}

.account-settings label {
    display: block;
    margin: 10px 0 5px;
}

.account-settings input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #e0e0e0;
}

.account-settings button {
    display: block;
    background-color: #ffba08;
    color: #121212;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.account-settings button:hover {
    background-color: #e09b07;
}
.verify-2fa {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 400px;
    background-color: #222;
    border-radius: 10px;
    color: #e0e0e0;
}

.verify-2fa h2 {
    color: #ffba08;
}

.verify-2fa label {
    display: block;
    margin: 10px 0 5px;
}

.verify-2fa input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #e0e0e0;
}

.verify-2fa button {
    background-color: #ffba08;
    color: #121212;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.verify-2fa button:hover {
    background-color: #e09b07;
}

.admin-dashboard {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    color: #e0e0e0;
	margin-top: 80px; /* Same as body padding */
}

.admin-dashboard h2 {
    color: #ffba08;
    text-align: center;
    margin-bottom: 20px;
}

.admin-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #e0e0e0;
}

.admin-dashboard table thead {
    background-color: #444;
}

.admin-dashboard table th, .admin-dashboard table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #555;
}

.admin-dashboard table tr:nth-child(even) {
    background-color: #333;
}

.admin-dashboard table select, .admin-dashboard table button {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    margin-right: 5px;
    font-size: 14px;
}

.admin-dashboard table button {
    background-color: #ffba08;
    color: #121212;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.admin-dashboard table button:hover {
    background-color: #e09b07;
}


.reset-link {
    color: #ffba08; /* Same orange color as other elements */
    text-decoration: none;
    font-weight: bold;
}

.reset-link:hover {
    color: #e09b07; /* Darker shade on hover */
    text-decoration: underline;
}




.admin-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.dashboard-title {
    font-size: 28px;
    color: #ffba08;
    text-align: center;
    margin-bottom: 20px;
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input {
    padding: 10px;
    width: 50%;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    margin-right: 10px;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.search-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #ffba08;
    color: #121212;
}

.search-btn:hover {
    background: #e09b07;
}

/* Add User Card */
.card.add-user {
    background: #2a2a2a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.card.add-user h2 {
    font-size: 20px;
    color: #ffba08;
    margin-bottom: 15px;
}

.card.add-user form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.card.add-user input,
.card.add-user select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.card.add-user input::placeholder {
    color: #999;
}

.card.add-user button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #4caf50;
    color: #fff;
}

.card.add-user button:hover {
    background: #45a049;
}

/* User Table */
.user-table {
    margin-top: 20px;
    overflow-x: auto;
}

.user-table table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: #333;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    text-align: center;
}

.user-table td {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #444;
}

.user-table tbody tr:nth-child(even) {
    background: #2a2a2a;
}

.user-table tbody tr:hover {
    background: #3a3a3a;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.inline-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.action-buttons input,
.action-buttons select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1e1e1e;
    color: #e0e0e0;
    width: auto;
}

.action-buttons button {
    padding: 8px 10px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    text-align: center;
}

.edit-btn {
    background: #4caf50;
}

.delete-btn {
    background: #f44336;
}

.reset-btn {
    background: #2196f3;
}

.btn:hover {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-input {
        width: 70%;
    }

    .card.add-user form {
        flex-direction: column;
    }

    .user-table table {
        font-size: 12px;
    }

    .action-buttons {
        flex-wrap: wrap;
    }
    .container-char {
        min-width: 0;      /* remove forced width */
        width: 90%;       /* ensure it shrinks correctly */
    }
}

/* Editable Form */
.inline-form input[type="email"],
.inline-form select {
    margin: 5px 0;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    width: auto;
}

.save-btn {
    background: #4caf50;
}

.cancel-btn {
    background: #f44336;
}

.default-actions {
    display: flex;
    gap: 10px;
}

.default-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
}



/* 
   ============= ARMORY PAGE STYLES =============
   This includes the styling for .container, .search-form, 
   .character-info, .gear-grid, .stats-table, etc.
   Also includes a #loading-overlay spinner style.
*/

/* Loading Overlay */
#loading-overlay {
    display: none; /* We'll enable it via JS on DOMContentLoaded */
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #ffcb05; /* gold color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container }*/
.container-char {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font-family: Arial, sans-serif;
    margin-top: 30px; /* Same as body padding */
    margin-bottom: 10px; /* <-- Adds 30px space AFTER this container */
}


.search-form label {
    display: block;
    margin-bottom: 0.25rem;
}

.search-form .form-group {
    margin-bottom: 1rem;

}

/* Only affect fields inside the search form */
.search-form input,
.search-form select {
    display: block;
    box-sizing: border-box;   /* makes width include padding + border */
    width: 98%;               /* gives you a small gutter on the sides */
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #3b3b3b;
    color: #fff;
    margin: 0 auto;           /* centers them inside the form */
}


.btn.btn-primary {
    background-color: #5658D0;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
}

.btn.btn-primary:hover {
    background-color: #4a4fb8; /* Slight change on hover */
}

.btn.btn-primary:active {
    background-color: #43499f; /* Darker shade for pressed state */
    transform: scale(0.98);    /* Optional "pressed" effect */
}

.btn.btn-primary:focus {
    outline: 2px solid #7e80e8; /* Visible focus indicator */
    outline-offset: 2px;
}

.btn.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #2b3242 0%, #232a38 100%);
    color: #eaf2ff;
    padding: 7px 12px;
    border: 1px solid #3f4f6b;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    cursor: pointer;
}

/* When the button is hovered */
.btn.btn-secondary:hover {
    border-color: #7da6db;
    color: #fff;
    text-decoration: none;
}

/* When the button is pressed */
.btn.btn-secondary:active {
    transform: scale(0.98); /* optional: slight scale for a "click" feel */
}

.btn.btn-secondary.active,
.btn.btn-secondary.is-active {
    border-color: #ffba08;
    background: linear-gradient(180deg, #3a2f17 0%, #2d2515 100%);
    color: #ffd46b;
}

/* When the button is focused (keyboard tabbing) */
.btn.btn-secondary:focus {
    outline: 2px solid rgba(125, 166, 219, 0.65); /* or remove the outline and do a box-shadow */
    outline-offset: 2px;
}

/* Character Sections */
.character-info,
.character-model,
.character-gear,
.character-stats,
.character-talents {
    background-color: #2a2b2c;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.search-header {
    font-size: 1.75rem;
    color: #ffcb05; /* gold-like color */
}



/* Error Handling */
.error {
    background-color: #660000;
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}


a {
    color: #ffffff;
    text-decoration: underline;
}

a:visited {
    color: #ffffff;
    text-decoration: underline;
}

a:hover {
    color: #ffffff; /* or change to another color on hover if you prefer */
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
}

.prev-btn {
    background-color: #444;
    color: #fff;
}

.next-btn {
    background-color: #ffba08;
    color: #121212;
}

.prev-btn:hover, .next-btn:hover {
    opacity: 0.8;
}



body::before {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--ef-header-offset, 70px); /* adjust offset from top */
    background-image: var(--bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
    opacity: 0.25; /* 50% transparency */
    pointer-events: none;
    z-index: -1; /* sits behind all content */
}


.hero_main {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero_main.allow-overflow {
    overflow: visible;
}

.hero_main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 28, 29, 0.5); /* #1b1c1d at 50% transparency */
    pointer-events: none;
    z-index: -1;
}

.container-char {
    position: relative;
    z-index: 1;
    
    overflow: hidden;
}

/* =============================
   Auth Pages (Login/Register)
   ============================= */
.auth-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 12px 10px 30px;
}
.auth-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: stretch;
}
.auth-panel,
.auth-card {
    background: rgba(27, 28, 29, 0.65);
    border: 1px solid #2f3438;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.auth-panel {
    position: relative;
    overflow: hidden;
}
.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 186, 8, 0.08), rgba(255, 186, 8, 0));
    pointer-events: none;
}
.auth-kicker {
    color: #ffba08;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin: 0 0 8px;
}
.auth-title {
    font-size: 28px;
    margin: 0 0 8px;
    color: #fff;
}
.auth-lede {
    color: #cfd6e6;
    font-size: 15px;
    margin: 0 0 16px;
}
.auth-benefits {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #e6e6e6;
}
.auth-benefits li {
    margin-bottom: 8px;
}
.auth-proof {
    margin: 0;
    color: #b9c2d6;
    font-size: 13px;
}
.auth-card .search-header {
    text-align: left;
    margin-bottom: 10px;
}
.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}
.auth-row {
    display: grid;
    gap: 6px;
}
.auth-row label {
    color: #e6e6e6;
    font-weight: 600;
}
.auth-row input {
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #3b3f45;
    background: #141517;
    color: #f1f1f1;
    font-size: 16px;
}
.auth-row input::placeholder {
    color: #8d96a6;
}
.auth-row input:focus {
    outline: 2px solid rgba(255, 186, 8, 0.5);
    outline-offset: 1px;
    border-color: #ffba08;
}
.auth-helper {
    color: #9aa3b3;
    font-size: 12px;
}
.auth-actions {
    margin-top: 6px;
}
.auth-actions .cta-button {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
}
.auth-links {
    margin: 12px 0 0;
    font-size: 13px;
    color: #cfd6e6;
}
.auth-links a {
    color: #ffba08;
    font-weight: 600;
}
.auth-links .divider {
    color: #5b6474;
    margin: 0 8px;
}
.auth-terms {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: #cfd6e6;
}
.auth-terms label {
    font-weight: 400;
    color: #cfd6e6;
}
.auth-terms input[type="checkbox"] {
    transform: translateY(1px);
    margin-right: 6px;
}
.success, .error {
    max-width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.success { background: #e0f5e9; color: #2a6b3d; }
.error { background: #fce8e6; color: #a94442; }
.error ul { margin: 0; padding-left: 18px; }

@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .auth-shell { padding: 6px 0 20px; }
    .auth-panel, .auth-card { padding: 18px; }
    .auth-title { font-size: 24px; }
}



.raid-planner-container {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.raid-planner-container::before {
    content: "";
    position: absolute;
    inset: 0;
      border: 1px solid #1f2a35;
  border-radius: 14px;
  box-shadow:0 2px 10px rgba(0,0,0,0.25);
    background: rgba(27, 28, 29, 0.5); /* #1b1c1d at 50% transparency */
    pointer-events: none;
    z-index: -1;
}

.anniversary-status-wrapper {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.anniversary-status-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 28, 29, 0.5); /* #1b1c1d at 50% transparency */
    pointer-events: none;
    z-index: -1;
}


.recent-sidebar,
.saved-overlay,
.overlay {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #2d2d2d; /* original solid backing */
}

.recent-sidebar::before,
.saved-overlay::before,
.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(45, 45, 45, 0.5);
    pointer-events: none;
    z-index: -1;
}

/* Slide-in behaviour */
#recent-sidebar,
#savedRaidsOverlay,
#overlay {
    position: fixed;
    right: -620px;
    top: 73px;
    width: 400px;
    height: calc(100% - 50px);
    background: rgba(45, 45, 45, 0.5);
    border-left: 1px solid #444;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 10px;
    z-index: 1000;
}

/* When open */
#recent-sidebar.open,
#savedRaidsOverlay.show,
#overlay.show {
    right: 0;
    border-radius: 8px;
}


.hero_main { text-align:center; padding:20px 20px;}

.hero_main h1 { color:#ffba08; font-size:48px; margin:0; }



    /* Close button for recent sidebar */
    #closeRecentSidebar {
        position: absolute;
        top: 5px;
        right: 10px;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }




footer {
    margin-top: auto;
}

.search-form {
    background-color: #2a2b2c;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;

    max-width: 100%;
}

@media (min-width: 768px) {
    .search-form {
        max-width: 600px;
        margin: 0 auto 1rem;
    }



}



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;

    /* header spacing */
    padding-top: var(--ef-header-offset, 70px);

    /* layout for sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Scrollbar theming */
* {
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #151515;
}
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: #151515;
}
*::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 10px;
    border: 2px solid #151515;
}
*::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* =========================================================
   Segmented Toggle (Pills) - Reusable site-wide
   Usage:
     <div class="seg-toggle" aria-label="...">
       <button type="button" class="active">Option</button>
       <button type="button">Option</button>
   ========================================================= */

/* container */
.seg-toggle{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border-radius:999px;
  background:#1f1f1f;
  border:1px solid #444;
  max-width:100%;
}

/* buttons */
.seg-toggle button{
  appearance:none;
  border:0;
  background:transparent;
  color:#ccc;
  padding:6px 12px;
  border-radius:999px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
  user-select:none;
}

/* active state */
.seg-toggle button.active{
  background:#ffba08;
  color:#111;
  font-weight:700;
}

/* hover/focus polish */
.seg-toggle button:hover{
  color:#fff;
}
.seg-toggle button:focus-visible{
  outline:2px solid rgba(255,186,8,.55);
  outline-offset:2px;
}

/* optional: compact pills */
.seg-toggle.is-compact button{
  padding:5px 10px;
  font-size:11px;
}

/* optional: full-width (spreads buttons evenly) */
.seg-toggle.is-block{
  display:flex;
  width:100%;
}
.seg-toggle.is-block button{
  flex:1 1 0;
  text-align:center;
}

/* optional: disabled */
.seg-toggle button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
  .seg-toggle button.is-active{
    background:#ffba08;
    color:#111;
    border-color:#ffba08;
  }

  /* Optional: stop clicked/focused from looking like active state */
  .seg-toggle button:focus { outline: none; box-shadow: none; }
