:root {
    /* Colors */
    --color-background: #000;
    --color-primary: #ffcc00;
    --color-secondary: #ff0000;
    --color-text: #ffcc00;
    --color-input-bg: #333;
    --color-hover: #222;
    --color-border: #999;
    
    /* Typography */
    --font-main: 'Courier New', Courier, monospace;
    --font-size-small: 11px;
    
    /* Spacing */
    --spacing-small: 5px;
    --spacing-medium: 10px;
    --spacing-large: 20px;
}

/* Base styles */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-main);
    /* overflow: hidden; */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    font-family: var(--font-main);
}

/* Form elements */
input[type="text"],
input[type="password"],
input[type="number"],
select {
    border: 1px solid var(--color-primary);
    background-color: var(--color-input-bg);
    color: #fff;
    margin-bottom: var(--spacing-small);
    caret-color: var(--color-primary);
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
}

/* Buttons */
button,
input[type="submit"],
.w3-button {
    background-color: var(--color-background);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.w3-button:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0;
    padding-left: 0;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3);
}

/* W3 Components overrides */
.w3-bar {
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    overflow: visible;
}

.w3-card-4 {
    background-color: var(--color-input-bg);
    border: 2px solid var(--color-secondary);
    color: var(--color-text);
    width: 50%;
    margin: auto;
}

/* Character sheet styles */
.character-sheet {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    /* justify-content: center; */
    grid-template-areas: "image info";
    width: min-content;
    gap: var(--spacing-large);
}

/* .stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-large);
    justify-content: center;
    position: absolute;
    top: 0;
} */

/* Skill system */
.skill-group {
    margin-bottom: var(--spacing-medium);
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    min-width: 40%;
}

.skill-name {
    display: flex;
    align-items: center;
}

.skill-group-header {
    padding: var(--spacing-small);
    cursor: pointer;
    background-color: #444;
    display: flex;
    height: 40px;
    justify-content: space-between;
    align-items: center;
}

/* Database table styles */
.dbtable {
    border-collapse: collapse;
    width: 80vw;
    border: 1px solid var(--color-border);
    font-size: var(--font-size-small);
}

/* Message system */
#info_msg {
    transition: opacity 0.3s ease-out;
    opacity: 0.8;
    position: fixed;
    top: 10vh;
    left: 0;
    width: 100%;
    padding: var(--spacing-medium);
    text-align: center;
    z-index: 1000;
}

.w3-bar-item {
    color: var(--color-primary);
}

.w3-bar-item:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

h4 img {
    height: 30px;
    cursor: pointer;
}

.w3-bar-item:hover img {
    filter: brightness(0);
}

.w3-container.w3-red {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.w3-container {
    padding: var(--spacing-medium);
}

.w3-input.w3-border {
    background-color: var(--color-background);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.w3-input.w3-border::placeholder {
    color: var(--color-border);
}

a:hover {
    color: #ffff00;
}

/* Adjust the navigation container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0;
    padding-left: 0;
}

/* Action buttons container to push elements to the right */
.action-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
}

/* Dropdown style */
.dropdown {
    position: relative;
    display: inline-block;
    min-width: 160px; /* Adjust the dropdown min-width if necessary */
}

/* Button in dropdown takes the full width of its container */
.dropbtn {
    width: 100%;
    padding: var(--spacing-medium);
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-background);
    min-width: 160px; /* Consistent minimum width */
    width: 100%; /* Match the width of the dropdown button */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0; /* Align dropdown to the left of the button */
    top: 100%; /* Position below the button */
    /* padding: var(--spacing-medium); */

}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--color-text);
    padding: var(--spacing-medium);
    text-decoration: none;
    display: block;
}

.button {
    background-color: var(--color-background);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    color: var(--color-primary);
    padding: var(--spacing-medium);
    display: flex;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    min-width: 160px; /* Adjust the dropdown min-width if necessary */
}

.button:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.dropdown-content a:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* Display dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Button hover effect */
.dropdown:hover .dropbtn {
    height: 100%;
    background-color: var(--color-primary);
    color: var(--color-background);
}

.user-dropdown {
    display: flex;
    flex-direction: row-reverse;
}

  .searchfield {
      width: 100%;
      font-size: var(--font-size-small);
      border: 1px solid #ddd;
      height: 12pt;
  }

  .dbtable th,
.dbtable td {
      text-align: left;
      padding: 12px;
      min-width: 100px;
      max-width: 20%;
  }

.dbtable tr {
      /* Add a bottom border to all table rows */
      border-bottom: 1px solid #ddd;
  }

.dbtable tr:not(#filter):hover {
      /* Add a grey background color to the table header and on hover */
      background-color: var(--color-hover);
  }

select.dbdrop {
      width: 100%;
      /* Full-width */
      font-size: var(--font-size-small);
      /* Increase font-size */
      /* padding: 12px 20px 12px 40px; */
      /* Add some padding */
      border: 1px solid #ddd;
      /* Add a grey border */
      /* margin-bottom: 12px; */
      /* Add some space below the input */
      height: 12pt;
}

.tabs {
    display: flex;
    /* background-color: #f1f1f1; */
    padding: var(--spacing-medium) var(--spacing-medium) 0 0;
}

.tab {
    padding: var(--spacing-medium) var(--spacing-large);
    border: 1px solid var(--color-primary);
    border-bottom: none;
    /* background-color: #e0e0e0; */
    margin-right: 5px;
    cursor: pointer;
    font-size: 85%;
    box-sizing: unset;
}

.tab:hover {
    background-color: var(--color-hover);
}

.tab.active {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-bottom: 1px solid var(--color-primary);
    font-weight: bold;
}

.tab-content {
    border: 1px solid var(--color-primary);
    padding: var(--spacing-large);
    background-color: var(--color-input-bg);
    /* max-height: 80vh; */
    max-width: 90vw;
    /* height: 80vh; */
    /* min-width: 70vw; */
    height: 75vh;
    overflow-y: auto;
    position: relative;
}

.tab-pane {
    display: none;
    height: -webkit-fill-available;
}

.tab-pane.active {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.character-image {
    grid-area: image;
    text-align: center;
}

.character-info {
    grid-area: info;
    border: 2px solid var(--color-secondary);
    padding: var(--spacing-large);
    border-radius: 10px;
}

.character-info input {
    border: none;
    border-bottom: 1px solid var(--color-background);
    width: 100%;
    font-family: var(--font-main);
    margin-bottom: var(--spacing-medium);
    font-size: 1em;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: var(--spacing-large);
}

.character-image img {
    width: 100%; 
    /* max-width: 300px;  */
    border: 2px solid var(--color-secondary); 
    border-radius: 10px;
}

.meter-container {
    position: relative;
    display: inline-block;
    width: fit-content;
    padding: var(--spacing-small) 0;
}

.meter-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: small;
    color: var(--color-background); /* Choose a contrasting color for readability */
}

meter {
    width: 200px;
    transform: scaleY(2.5); /* Adjust this value for the desired height */
    transform-origin: center;
    /* margin: 10px 0; */
    /* background: #e54b4b; */
}

#hp_bar::-webkit-meter-optimum-value {
    background: #0a7;
}

#sp_bar::-webkit-meter-optimum-value {
    background: #a70;
}

.message-close {
    height: 100%;
    cursor: pointer;
    background-color: transparent; 
    font-size:x-large; 
    font-weight: bold;
}

/* Add to style.css */
.stats-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* flex-wrap: wrap; */
    gap: var(--spacing-small);
    margin-bottom: var(--spacing-medium);
    padding: var(--spacing-small);
    /* justify-content: center; */
    width: -webkit-fill-available;
    overflow-x: auto;
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* gap: var(--spacing-medium); */
    /* margin-bottom: var(--spacing-large); */
    /* justify-content: center; */
    /* justify-content: space-between; */
}

.stat-block {
    border: 1px solid var(--color-primary);
    padding: var(--spacing-small);
    border-radius: 5px;
    min-width: 100px;
    text-align: center;
    /* max-height: 48%; */
    /* text-align: center; */
    /* border: 1px solid var(--color-primary); */
    /* padding: var(--spacing-medium); */
    /* border-radius: 5px; */
    /* width: 100px; */
    /* background-color: #f9f9f9; */

}

.stat-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.stat-input {
    width: 3ch;
    text-align: center;
    background-color: var(--color-input-bg);
    color: #fff;
    border: none;
    border-bottom: 1px solid var(--color-primary);
}

.skills-section {
    /* margin-top: var(--spacing-large); */
    /* height: 200px; */
    padding: var(--spacing-medium) var(--spacing-small);
    height: 300px;
    line-height: normal;
    /* height: 60%; */
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #666;
}

/* width */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #333; 
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #fc0; 
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #fd0; 
  }

.skills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-group {
    margin-bottom: var(--spacing-medium);
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    height: fit-content;
    background-color: #222;
    min-width: 300px;
    width: min-content;
}

.skill-list {
    padding: var(--spacing-medium);
}

.skill-item {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 0 10px;
}

.skill-value {
    width: 4ch;
    text-align: center;
    background-color: var(--color-input-bg);
    color: #fff;
    border: none;
    border-bottom: 1px solid var(--color-primary);
}

/* Add to style.css */
.skill-group-parent {
  border-left: 2px solid var(--color-primary);
  margin: 5px 0;
  padding-left: 10px;
}

.sub-skill {
  margin-left: 15px;
  font-size: 0.9em;
}

.skill-style {
  width: 100px;
  margin-left: 10px;
  background-color: var(--color-input-bg);
  color: #fff;
  border: none;
  border-bottom: 1px solid var(--color-primary);
}

.skill-parent {
  font-weight: bold;
  color: var(--color-primary);
  padding: 5px 0;
}

/* Add these styles */
.skill-controls {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-search {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 70%;
}

.skill-filter {
    display: flex;
    padding: var(--spacing-small);
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 30%;
}

/* Navigation related styles */
.nav-spacer {
    padding-top: 60px;
}

/* Main layout styles */
.main-centered {
    display: grid;
    place-items: center;
    margin-top: 2vh;
}

.main-content {
    padding: 0 5vw;
    /* min-width: 500px; */
    /* max-width: 70vw; */
    max-height: 90vh;
}

/* Character sheet specific styles */
.save-button {
    position: fixed;
    top: 20px;
    right: 45vw;
    z-index: 1000;
}

.heading {
    /* max-height: 48%; */
    font-size: 80%;
    width: 100%;
    /* overflow-x: hidden; */
}

.delete-button {
    margin: var(--spacing-small);
}

/* Editor styles */
#editorjs {
    background-color: #555;
    padding: var(--spacing-large);
}

/* Database table styles */
.database-table {
    border-collapse: collapse;
    width: 80vw;
    border: 1px solid #ddd;
    font-size: var(--font-size-small);
}

/* Responsive navigation and hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: var(--spacing-small);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

nav {
    background-color: var(--color-background);
}

nav a {
    text-decoration: none;
    height:fit-content;
}

h4 {
    padding: var(--spacing-small);
}

.nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    border: none;
    width: auto;
}

/* Improve dropdown behavior */
.dropdown {
    position: relative;
    width: auto;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background);
    border: 1px solid var(--color-primary);
    border-radius: 0 0 4px 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    max-height: none;
}

/* Style dropdown items */
.dropdown-content a {
    padding: var(--spacing-medium);
    color: var(--color-text);
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* Hide hamburger menu on wider screens */
.hamburger {
    display: none;
}

/* Adjust spacing */
.nav-container {
    padding: var(--spacing-small) var(--spacing-large);
}

/* Add visual feedback for active navigation items */
.w3-bar-item:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 4px;
}

.hide-zero {
    min-width: 50%;
}

#hideZeroSkills {
    margin: var(--spacing-small) 0;
    width: auto;
}

#toggleAllSKills {
    margin: var(--spacing-small) 0;
    min-width: 50%;
}

.toggle-all {
    /* margin-left: 15px; */
    cursor: pointer;
}
/* @media screen and (max-width: 1250px) { */
    
/* } */

    /* Responsive styles */
@media screen and (max-width: 800px) {
    h1, h2, h3, h4, h5, h6 {
        /* font-weight: 300; */
        font-size: 1em;
        font-family: var(--font-main);
    }

    .w3-card-4 {
        background-color: var(--color-input-bg);
        border: 2px solid var(--color-secondary);
        color: var(--color-text);
        width: 100%;
        margin: auto;
    }

    /* Navigation adjustments */
    .nav-container {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
    }

    .stats-container {
        gap: 2px;
        line-height: normal;
        border: 1px solid var(--color-primary);
        padding: 2px;
    }

    .stat-block {
        border: none;
        /* padding: var(--spacing-small); */
        /* border-radius: 5px; */
        max-width: 100px;
        margin: 0;
        /* text-align: center; */
    }

    .skills-section {
        border: solid 1px var(--color-primary);
    }

    .skill-group {
        /* margin-bottom: var(--spacing-medium); */
        border: none;
        /* border-radius: 5px; */
    }
    
    .tab-content {
        padding: var(--spacing-medium);
    }

    .dropdown {
        width: 100%;
        min-width: unset;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    /* Main content adjustments */
    .main-content {
        padding: 0 2vw;
        height: 85vh;
        min-width: 70vw;
        /* max-width: 96vw; */
        padding: 0 2vw;
    }

    .character-sheet {
        /* grid-template-columns: 1fr; */
        grid-template-areas: "image" "info";
        width: 100%;
    }
    
    .character-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .character-image {
        display: grid;
        grid-template-columns: 1fr 2fr;
        align-items: center;
        gap: var(--spacing-medium);
    }

    /* .character-image img { */
        /* width: 100%;  */
        /* min-width: max(200px, 10vw); */
        /* min-width: 100px; */
        /* max-height: 100%; */
        /* border: 2px solid var(--color-secondary);  */
        /* border-radius: 10px; */
    /* } */

    /* .stats-container {
        flex-direction: column;
        align-items: center;
    } */

    /* Database table adjustments */
    .dbtable {
        width: 96vw;
        font-size: 10px;
    }

    .dbtable th,
    .dbtable td {
        padding: 8px;
        min-width: unset;
    }

    /* Skill controls adjustments */
    .skill-controls {
        /* flex-direction: column; */
        align-items: stretch;
    }

    .skill-filter {
        display: grid;
        grid-template-columns: 1fr 4fr;
        /* flex-wrap: nowrap; */
        /* flex-direction: column; */
        gap: 2px;
        /* justify-content: center; */
    }

    /* Editor adjustments */
    #editorjs {
        padding: var(--spacing-small);
    }

    /* Save button adjustment */
    .save-button {
        right: 15vw;
        top: 10px;
    }

    /* Meter adjustments */
    meter {
        width: 150px;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: block;
    }

    /* Animate hamburger to X when active */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile navigation */
    .nav-container {
        padding: var(--spacing-small);
    }

    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        border-top: 1px solid var(--color-primary);
        transition: 0.3s;
    }

    .nav-menu.active {
        display: flex;
        left: 0;
    }

    /* Adjust dropdowns for mobile */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .dropdown.active .dropdown-content {
        max-height: 500px;
    }

    /* Tables for mobile */
    .dbtable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Stack form elements */
    .form-group {
        flex-direction: column;
    }

    input, select, textarea {
        width: 100%;
        margin: var(--spacing-small) 0;
    }

    /* Adjust spacing and sizes */
    .main-content {
        padding: var(--spacing-small);
    }

    /* .stat-block {
        min-width: calc(50% - var(--spacing-medium));
    } */

    /* Make buttons more touch-friendly */
    button,
    .w3-button,
    .dropbtn {
        min-height: 44px;
        padding: var(--spacing-small) var(--spacing-medium);
    }
}

/* ============================================
   HOMEPAGE DESIGN IMPROVEMENTS
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.hero-logo img {
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5));
}

.hero-title {
    font-size: 3rem;
    margin: 20px 0 10px 0;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-top: 10px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.3);
    border-color: var(--color-secondary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--color-primary);
    margin: 15px 0 10px 0;
    font-size: 1.3rem;
}

.feature-card p {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Info Sections */
.info-section {
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
}

.info-section h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.info-section p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* Steps Container */
.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    max-width: 300px;
    flex: 1;
    min-width: 250px;
}

.step-number {
    background: var(--color-primary);
    color: var(--color-background);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--color-primary);
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.step-content p {
    color: #bbb;
    margin: 0;
    line-height: 1.5;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    color: #ccc;
    padding: 10px 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    padding: 50px 40px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
    min-width: 160px;
}

.cta-button.primary {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.cta-button.primary:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.cta-button.secondary:hover {
    background: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.cta-button:not(.primary):not(.secondary) {
    background: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-secondary);
}

.cta-button:not(.primary):not(.secondary):hover {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .info-section {
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        max-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
    }
}

/* ============================================
   AUTH PAGES (LOGIN/SIGNUP) IMPROVEMENTS
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.auth-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
}

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

.auth-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.5));
}

.auth-header h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.auth-description {
    color: #bbb;
    font-size: 0.95rem;
    margin: 0;
}

.auth-form {
    margin-top: 30px;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    background-color: #222;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.auth-form input::placeholder {
    color: #666;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--color-primary);
    color: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-btn:hover:not(:disabled) {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.auth-submit-btn:disabled {
    background: #444;
    color: #888;
    border-color: #444;
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.auth-footer p {
    color: #bbb;
    margin: 0;
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.forgot-password-link {
    margin-top: 8px;
    text-align: right;
}

.text-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.password-match-indicator {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 3px;
}

.password-match-indicator.match {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.password-match-indicator.no-match {
    color: var(--color-secondary);
    background: rgba(255, 0, 0, 0.1);
}

.password-indicator {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.password-indicator.match {
    color: #00ff00;
}

.password-indicator.no-match {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PROFILE PAGE IMPROVEMENTS
   ============================================ */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.profile-info h1 {
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.profile-subtitle {
    color: #bbb;
    margin: 0;
    font-size: 1.1rem;
}

.profile-section {
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.5rem;
}

.add-character-btn {
    background: var(--color-secondary);
    color: var(--color-text);
    border: 2px solid var(--color-secondary);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.add-character-btn:hover {
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.character-card {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.character-card-link {
    text-decoration: none;
    display: block;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 204, 0, 0.3);
    border-color: var(--color-secondary);
}

.character-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.character-delete-btn {
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0;
    flex-shrink: 0; /* Prevent shrinking */
    aspect-ratio: 1 / 1; /* Maintain square ratio */
}

.character-delete-btn:hover {
    background: #ff3333;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.delete-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.character-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-right: 35px; /* Make room for delete button */
    position: relative;
}

.character-card-header h3 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.4rem;
}

.character-role {
    background: var(--color-secondary);
    color: var(--color-text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.character-card-body {
    margin-bottom: 15px;
}

.character-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.stat-label {
    color: #bbb;
    font-weight: 600;
}

.stat-value {
    color: #fff;
}

.character-card-footer {
    text-align: right;
}

.view-link {
    color: var(--color-primary);
    font-weight: bold;
    transition: color 0.3s ease;
}

.character-card-link:hover .view-link {
    color: var(--color-secondary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #bbb;
    font-size: 1.1rem;
    margin: 0 0 30px 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-action-card {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.2);
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.quick-action-card h4 {
    color: var(--color-primary);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.quick-action-card p {
    color: #bbb;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .add-character-btn {
        width: 100%;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ============================================
   DATABASE PAGES IMPROVEMENTS
   ============================================ */

.database-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 30px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
    max-width: 80vw;
    width: 100%;
}

.database-header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.db-icon {
    font-size: 2.5rem;
}

.db-description {
    color: #ccc;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .database-header {
        padding: 20px;
    }
    
    .database-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .db-description {
        font-size: 1rem;
    }
}

/* ============================================
   SETTINGS PAGE IMPROVEMENTS
   ============================================ */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.settings-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.settings-avatar {
    flex-shrink: 0;
}

.settings-avatar-large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.settings-info h1 {
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-subtitle {
    color: #bbb;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.user-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #222;
    border: 1px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: 25px;
}

.badge-label {
    color: #bbb;
    font-size: 0.9rem;
}

.badge-value {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1rem;
}

.settings-section {
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-section-header {
    margin-bottom: 25px;
}

.settings-section-header h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section-header.danger h2 {
    color: var(--color-secondary);
}

.section-description {
    color: #bbb;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.settings-form {
    margin-top: 20px;
}

.settings-form .form-group {
    margin-bottom: 25px;
}

.settings-form label {
    display: block;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.settings-form input {
    width: 100%;
    padding: 12px 15px;
    background-color: #222;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.settings-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
}

.settings-button.primary {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.settings-button.primary:hover:not(:disabled) {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.settings-button.danger {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.settings-button.danger:hover:not(:disabled) {
    background: transparent;
    color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.settings-button:disabled {
    background: #444;
    color: #888;
    border-color: #444;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Danger Zone */
.danger-zone {
    border-color: var(--color-secondary);
    border-width: 2px;
}

.danger-warning {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.warning-content h4 {
    color: var(--color-secondary);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.warning-content p {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

.settings-footer {
    text-align: center;
    padding: 20px 0;
}

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .settings-info h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .settings-section {
        padding: 20px;
    }
    
    .danger-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .settings-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   NOTIFICATION SYSTEM IMPROVEMENTS
   ============================================ */

.notification-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    z-index: 9999;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.3s ease, top 0.3s ease;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        top: 60px;
    }
    to {
        opacity: 1;
        top: 80px;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    position: relative;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
}

.notification-message p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.notification-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-progress {
    height: 4px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Success Notification */
.notification-success {
    background: linear-gradient(135deg, #1a4d1a 0%, #0d260d 100%);
    border: 2px solid #00ff00;
}

.notification-success .notification-icon {
    background: #00ff00;
    color: #000;
}

.notification-success .notification-progress {
    background: #00ff00;
}

/* Error Notification */
.notification-error {
    background: linear-gradient(135deg, #4d1a1a 0%, #260d0d 100%);
    border: 2px solid #ff0000;
}

.notification-error .notification-icon {
    background: #ff0000;
    color: #fff;
}

.notification-error .notification-progress {
    background: #ff0000;
}

/* Info Notification */
.notification-info {
    background: linear-gradient(135deg, #1a3a4d 0%, #0d1d26 100%);
    border: 2px solid #00aaff;
}

.notification-info .notification-icon {
    background: #00aaff;
    color: #fff;
}

.notification-info .notification-progress {
    background: #00aaff;
}

@media (max-width: 768px) {
    .notification-container {
        top: 70px;
        width: 95%;
    }
    
    .notification-content {
        padding: 15px;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .notification-message p {
        font-size: 0.95rem;
    }
}

/* ============================================
   CHARACTER SHEET IMPROVEMENTS
   ============================================ */

/* Character Sheet Header */
.charsheet-main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.charsheet-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.charsheet-title h1 {
    color: var(--color-primary);
    margin: 0 0 5px 0;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.character-subtitle {
    color: #bbb;
    margin: 0;
    font-size: 1.1rem;
}

.charsheet-actions {
    display: flex;
    gap: 15px;
}

.charsheet-save-button,
.charsheet-delete-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    font-family: var(--font-main);
}

.charsheet-save-button {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.charsheet-save-button:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

/* Export/Import Buttons */
.charsheet-export-buttons {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.charsheet-export-btn {
    background: #2a2a2a;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.charsheet-export-btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.charsheet-export-btn .btn-icon {
    font-size: 1rem;
}

.charsheet-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.charsheet-delete-button {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.charsheet-delete-button:hover {
    background: transparent;
    color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Enhanced Tabs */
.mobile-tab-toggle {
    display: none; /* Hidden by default on desktop */
}

.charsheet-tabs {
    display: flex;
    gap: 5px;
    padding: 0;
    margin-bottom: 0;
}

.charsheet-tabs .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-icon {
    font-size: 1.2rem;
}

.charsheet-tabs .tab:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.charsheet-tabs .tab.active {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.charsheet-content {
    border: 2px solid var(--color-primary);
    border-top: none;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    min-height: 70vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   TAB CONTENT STANDARDIZATION
   ============================================ */

/* Ensure all tab containers have consistent width */
.bio-container,
.skills-tab-container,
.gear-tab-container,
.notes-tab-container {
    width: 100%;
    max-width: 1140px; /* Consistent max width (1200px - 60px padding) */
    min-width: 800px; /* Prevent excessive shrinking */
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto; /* Center the content */
}

@media (max-width: 900px) {
    .bio-container,
    .skills-tab-container,
    .gear-tab-container,
    .notes-tab-container {
        min-width: 100%;
    }
}

/* ============================================
   BIO TAB IMPROVEMENTS
   ============================================ */

.bio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


.bio-info-section,
.bio-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-card {
    background: #222;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bio-section-title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-form-group {
    margin-bottom: 20px;
}

.bio-form-group label {
    display: block;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.bio-input,
.bio-select {
    width: 100%;
    padding: 10px 15px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.bio-input:focus,
.bio-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.bio-input.readonly {
    background-color: #2a2a2a;
    cursor: not-allowed;
    opacity: 0.7;
}

.bio-input.centered {
    text-align: center;
}

.bio-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.bio-stat-item {
    display: flex;
    flex-direction: column;
}

.bio-stat-item label {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Character Image */
.character-image-wrapper {
    position: relative;
    text-align: center;
}

.character-image-bio {
    width: 100%;
    max-width: 400px;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-image-bio:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

.image-upload-hint {
    margin-top: 10px;
    color: #bbb;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hint-icon {
    font-size: 1.2rem;
}

/* HP/SP Bars */
.bars-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.bar-wrapper {
    position: relative;
}

.hp-meter,
.sp-meter {
    width: 100%;
    height: 30px;
    border-radius: 5px;
}

.hp-meter::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, #00ff00 0%, #00aa00 100%);
    border-radius: 5px;
}

.sp-meter::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, #ffaa00 0%, #ff6600 100%);
    border-radius: 5px;
}

.bar-values {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #000;
}

.bar-input {
    width: 3ch;
    text-align: center;
    background-color: transparent;
    border: none;
    color: #000;
    font-weight: bold;
    font-family: var(--font-main);
}

.cash-input {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ============================================
   SKILLS TAB IMPROVEMENTS
   ============================================ */

.skills-tab-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card,
.skills-controls-card {
    background: #222;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stats-title,
.skills-title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-block-modern {
    background: #333;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-block-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.2);
}

.stat-name-modern {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-values-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.stat-input-modern {
    width: 3ch;
    text-align: center;
    background-color: #222;
    color: #fff;
    border: none;
    border-bottom: 1px solid var(--color-primary);
    font-size: 1.1rem;
    font-weight: bold;
    font-family: var(--font-main);
}

.stat-separator {
    color: #bbb;
    font-weight: bold;
}

/* Skills Controls */
.skills-controls-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.skill-search-modern {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    background-color: #333;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
}

.skill-search-modern:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.skill-filters {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Modern Toggle Switches */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #555;
    border-radius: 26px;
    transition: all 0.3s ease;
    border: 2px solid #666;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
    border-color: var(--color-primary);
}

.toggle-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Skills Section */
.skills-section-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.skill-group-modern {
    background: #222;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
}

.skill-group-header-modern {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--color-primary);
}

.skill-group-header-modern:hover {
    background: linear-gradient(135deg, #444 0%, #333 100%);
}

.skill-group-title {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon-modern {
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.skill-list-modern {
    padding: 15px;
}

.skill-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.skill-item-modern:hover {
    background: #333;
    border-color: var(--color-primary);
}

.skill-item-modern.sub-skill {
    margin-left: 20px;
    background: #252525;
}

.skill-name-modern {
    color: #fff;
    font-size: 0.95rem;
    flex: 1;
}

.skill-name-modern.sub {
    color: #ccc;
    font-size: 0.9rem;
}

.skill-name-parent {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 15px;
}

.skill-value-modern,
.skill-style-modern {
    width: 50px;
    padding: 5px 10px;
    text-align: center;
    background-color: #333;
    border: 1px solid var(--color-primary);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-main);
    font-weight: bold;
}

.skill-style-modern {
    width: 120px;
    margin-right: 10px;
}

.skill-value-modern:focus,
.skill-style-modern:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

/* ============================================
   RESPONSIVE CHARACTER SHEET
   ============================================ */

@media (max-width: 1200px) {
    .bio-container {
        grid-template-columns: 1fr;
    }
    
    .stats-container-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .skills-section-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .charsheet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .charsheet-title h1 {
        font-size: 1.8rem;
    }
    
    .charsheet-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .charsheet-save-button,
    .charsheet-delete-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile Tab Toggle Button */
    .mobile-tab-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 20px;
        background: var(--neo-purple);
        color: var(--neo-cyan);
        border: 2px solid var(--neo-cyan);
        border-radius: 4px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 10px;
        box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    }
    
    .mobile-tab-toggle:hover {
        background: var(--neo-cyan);
        color: var(--neo-purple);
        transform: translateY(-2px);
        box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    }
    
    .mobile-tab-toggle:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    }
    
    .hamburger-icon {
        font-size: 20px;
    }
    
    .charsheet-tabs {
        flex-direction: column;
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        margin-bottom: 15px;
    }
    
    .charsheet-tabs.mobile-tabs-open {
        max-height: 400px;
    }
    
    .charsheet-tabs .tab {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding: 12px 15px;
    }
    
    .charsheet-content {
        padding: 20px 15px;
    }
    
    .bio-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .skill-search-modern {
        width: 100%;
    }
    
    .skill-filters {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   GEAR TAB IMPROVEMENTS
   ============================================ */

.gear-tab-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gear-card {
    background: #222;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gear-card-header {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border-bottom: 1px solid var(--color-primary);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gear-section-title {
    color: var(--color-primary);
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.5rem;
}

.gear-add-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-background);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.gear-add-button:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.button-icon {
    font-size: 1rem;
}

.gear-table-wrapper {
    padding: 25px;
}

.gear-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.gear-table-modern thead {
    background: #333;
}

.gear-table-modern th {
    padding: 12px 15px;
    text-align: left;
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--color-primary);
}

.gear-table-modern tbody tr.gear-row {
    background: #2a2a2a;
    transition: all 0.3s ease;
}

.gear-table-modern tbody tr.gear-row:hover {
    background: #333;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.1);
}

.gear-table-modern td {
    padding: 12px 15px;
    color: #fff;
    border-bottom: 1px solid #444;
}

.gear-name {
    font-weight: 600;
    color: var(--color-primary);
}

.gear-notes {
    color: #bbb;
    font-size: 0.9rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gear-damage {
    color: var(--color-secondary);
    font-weight: 600;
}

.gear-cost {
    color: #4CAF50;
    font-weight: 600;
}

.gear-hl {
    color: var(--color-secondary);
    font-weight: 600;
}

.gear-status-select {
    padding: 6px 10px;
    background: rgba(255, 204, 0, 0.1);
    color: var(--neo-cyan);
    border: 1px solid var(--neo-cyan);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    min-width: 100px;
}

.gear-status-select:hover {
    background: rgba(255, 204, 0, 0.2);
    border-color: var(--color-primary);
}

.gear-status-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.gear-status-select option {
    background: #1a1a1a;
    color: var(--neo-cyan);
    padding: 5px;
}

.gear-remove-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--color-secondary);
    color: #fff;
    border: 1px solid var(--color-secondary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.gear-remove-button:hover {
    background: transparent;
    color: var(--color-secondary);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.gear-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.gear-empty-state p {
    margin: 0;
    font-size: 1.1rem;
    color: #888;
}

/* ============================================
   GEAR TAB RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .gear-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gear-add-button {
        width: 100%;
        justify-content: center;
    }
    
    .gear-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }
    
    .gear-table-modern {
        font-size: 0.85rem;
    }
    
    .gear-table-modern th,
    .gear-table-modern td {
        padding: 8px 10px;
    }
    
    .gear-notes {
        max-width: 150px;
    }
}

/* ============================================
   NOTES TAB IMPROVEMENTS
   ============================================ */

/* Notes tab container width controlled by unified rule above */

.notes-card {
    background: #222;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notes-header {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border-bottom: 1px solid var(--color-primary);
    padding: 20px 25px;
}

.notes-title {
    color: var(--color-primary);
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-icon {
    font-size: 1.5rem;
}

.notes-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-hint {
    color: #bbb;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notes-editor-wrapper {
    padding: 25px;
    background: #1a1a1a;
    min-height: 500px;
}

/* EditorJS Customization */
#editorjs {
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 20px;
    min-height: 450px;
}

.codex-editor__redactor {
    padding-bottom: 50px !important;
}

.ce-block__content,
.ce-toolbar__content {
    max-width: 100% !important;
}

.ce-paragraph {
    color: #fff !important;
    line-height: 1.6 !important;
}

.ce-header {
    color: var(--color-primary) !important;
}

.ce-toolbar__plus,
.ce-toolbar__settings-btn {
    background: #333 !important;
    color: var(--color-primary) !important;
}

.ce-toolbar__plus:hover,
.ce-toolbar__settings-btn:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
}

.ce-inline-toolbar {
    background: #333 !important;
    border: 1px solid var(--color-primary) !important;
}

.ce-inline-tool {
    color: #fff !important;
}

.ce-inline-tool:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
}

.ce-popover {
    background: #333 !important;
    border: 1px solid var(--color-primary) !important;
}

.ce-popover__item {
    color: #fff !important;
}

.ce-popover__item:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
}

/* ============================================
   NOTES TAB RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .notes-header {
        padding: 15px 20px;
    }
    
    .notes-title {
        font-size: 1.1rem;
    }
    
    .notes-hint {
        font-size: 0.85rem;
    }
    
    .notes-editor-wrapper {
        padding: 15px;
        min-height: 400px;
    }
    
    #editorjs {
        padding: 15px;
        min-height: 350px;
    }
}

/* ============================================
   NEW CHARACTER PAGE
   ============================================ */

.newchar-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.newchar-header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.header-icon {
    font-size: 2.5rem;
    margin-right: 10px;
}

.newchar-subtitle {
    color: #bbb;
    font-size: 1.1rem;
    margin: 0;
}

.newchar-card {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.newchar-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    font-size: 1.3rem;
}

.required {
    color: var(--color-secondary);
    font-weight: bold;
}

.optional {
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    background-color: #3a3a3a;
}

.form-input.touched:valid,
.form-select.touched:valid {
    border-color: #4CAF50;
}

.form-hint {
    color: #888;
    font-size: 0.85rem;
    margin-top: -3px;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background-color: #333;
    color: #fff;
    padding: 10px;
}

.role-info-card {
    background: #2a2a2a;
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: -10px;
}

.role-description {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.btn-cancel,
.btn-create {
    flex: 1;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: 2px solid;
    font-family: var(--font-main);
}

.btn-cancel {
    background: transparent;
    color: #bbb;
    border-color: #666;
}

.btn-cancel:hover {
    background: #333;
    color: #fff;
    border-color: #999;
}

.btn-create {
    background: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.btn-create:hover {
    background: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.newchar-info {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
}

.newchar-info h3 {
    color: var(--color-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-list {
    color: #bbb;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    line-height: 1.5;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* New Character Page Responsive */
@media (max-width: 768px) {
    .newchar-container {
        padding: 15px;
    }
    
    .newchar-header h1 {
        font-size: 2rem;
    }
    
    .header-icon {
        font-size: 2rem;
    }
    
    .newchar-card {
        padding: 25px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-create {
        width: 100%;
    }
}

