/* --- General & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Keeping Inter for general text, but might suggest a thematic one for headings */
    font-family: 'Inter', sans-serif;
}

html {
    /* Deeper, more earthy dark background */
    background-color: #0A1414;
}

body {
    padding: 90px 12px 12px;
    margin: 0 10%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Loader Styles --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A1414; /* Match html background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    border: 5px solid rgba(255, 255, 255, 0.2);
    /* Jade green spinner */
    border-left-color: #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 12px;
    z-index: 2000;
    background-color: #0A1414; /* Match html background */
}

header nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
    padding: 8px 10%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

#logo {
    display: block;
    height: 2em;
    width: auto;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.nav-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon-btn svg {
    fill: #ccc;
}

/* --- Header Search Bar Styles --- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

#recipe-search-input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #444;
    border-radius: 8px;
    /* Darker, earthy background for input */
    background-color: #1A2424;
    color: #fff;
    font-size: 0.9em;
    width: 280px;
    transition: all 0.3s ease;
}

#recipe-search-input:focus {
    outline: none;
    /* Jade green focus border */
    border-color: #4CAF50;
    /* Jade green shadow */
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

#search-button {
    /* Primary button color - Jade Green */
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

#search-button:hover {
    /* Lighter jade green on hover */
    background-color: #66BB6A;
}

@media (max-width: 768px) {
    header ul {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 10px;
    }
    .search-container {
        width: 100%;
        order: 3;
        justify-content: center;
        margin-top: 10px;
    }
    #recipe-search-input {
        width: calc(100% - 70px);
    }
}

/* --- Search Results Overlay Styles --- */
.search-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1500;
    overflow-y: auto;
    padding: 80px 5%;
    color: #E0E0E0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.search-results-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.search-results-overlay .search-results-content {
    width: 100%;
    max-width: 900px;
}

.search-results-overlay .search-results-title {
    font-size: 1.5em;
    color: #fff;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.search-results-overlay #no-recipes-found {
    padding: 20px;
    font-size: 1.1em;
    text-align: center;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.search-results-overlay #search-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.search-result-item {
    /* Darker, earthy background for cards */
    background-color: rgba(10, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease-in-out;
}

.search-result-item:hover {
    transform: translateY(-5px);
    /* Jade green border on hover */
    border-color: #4CAF50;
}

.recipe-link {
    font-size: 1.1em;
    font-weight: 600;
    /* Jade green for links */
    color: #4CAF50 !important;
    text-decoration: none;
}
.recipe-link:hover {
    text-decoration: underline;
}

.learned-by-label {
    font-size: 0.9em;
    color: #aaa;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

.character-list-in-card {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.character-list-in-card a {
    text-decoration: none;
    font-weight: 600;
}
.character-list-in-card a:hover {
    text-decoration: underline;
}

#sign-in {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    /* Darker, earthy background for sign-in */
    background-color: #1A2424;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.25s;
}

#sign-in:hover {
    transform: translateY(-2px);
}

/* --- Index Page: Hero Section --- */
#hero {
    display: flex;
    margin-top: 60px;
    width: 100%;
    min-height: 600px;
    align-items: center;
    position: relative;
}

#hero-content {
    flex: 0 0 50%;
    padding-right: 40px;
}

.page-title {
  font-size: 4em;
  color: #fff;
  line-height: 1.3em;
  text-align: left;
}

#hero-text {
    color: #fff;
    font-size: 4em;
    line-height: 1.3em;
    text-align: left;
}

#hero-text span {
    /* Jade green for highlighted text */
    color: #4CAF50;
}

#hero p {
    color: #fff;
    font-size: 1em;
    line-height: 1.8em;
    max-width: 500px;
    margin-top: 20px;
}

#hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    min-height: 600px;
    margin-top: 40px;
}

#hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.button-group {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin-top: 40px;
}

.hero-button {
    flex: 1;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    border-radius: 10px;
    transition: all 0.4s;
    white-space: nowrap;
}

#download-btn {
    /* Darker, earthy button */
    background-color: #1A2424;
}

#get-started-btn {
    /* Primary button color - Jade Green */
    background-color: #4CAF50;
}

#download-btn:hover {
    transform: translateY(-3px);
}

#get-started-btn:hover {
    /* Jade green shadow on hover */
    box-shadow: 0 0 15px 5px rgba(76, 175, 80, 0.6), 0 0 50px 20px rgba(76, 175, 80, 0.35), 0 0 100px 40px rgba(76, 175, 80, 0.15);
    transform: translateY(-3px) scale(1.02);
}

/* --- Dashboard Page: Hero Section --- */
#dashboard-hero {
    display: flex;
    width: 100%;
    min-height: 150px;
    align-items: center;
    gap: 20px;
}

#dashboard-title {
    flex-grow: 1;
}

#hero-buttons-container {
    display: flex;
}

#dashboard-hero .button-group {
    margin-top: 0;
    width: 400px;
}

/* --- Collapsible Filter Section Styles --- */
#collapsible-filter-section {
    margin: 20px 0;
    /* Darker, earthy background for filter section */
    background-color: rgba(10, 20, 20, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
}

#filter-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#filter-reset-btn {
    /* Primary button color - Jade Green */
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}
#filter-reset-btn:hover {
    /* Lighter jade green on hover */
    background-color: #66BB6A;
}
#filter-reset-btn.hidden {
    display: none;
}

#filter-options-container {
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 20px;
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.3s ease-in-out;
}

#filter-options-container.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
}

.filter-group-title {
    font-size: 1em;
    font-weight: 600;
    /* Jade green for titles */
    color: #4CAF50;
    margin-bottom: 15px;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    padding: 8px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    /* Darker, earthy background for filter options */
    background-color: #1A2424;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    /* Jade green border on hover */
    border-color: #4CAF50;
    color: #fff;
}

.filter-option.active {
    /* Primary button color - Jade Green when active */
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    font-weight: 600;
}

#dashboard-hero .hero-button {
    margin-top: 10px;
    padding-left: 18px;
    padding-right: 18px;
}

#add-character-btn {
  /* Darker, earthy button */
  background-color: #1A2424;
}

#import-character-btn {
  /* Primary button color - Jade Green */
  background-color: #4CAF50;
}

#add-character-btn:hover, #import-character-btn:hover {
  transform: translateY(-3px);
}

/* --- Dashboard Page: Character Table --- */
.character-table {
    width: 100%;
    display: grid;
    /* NEW: Added a column for the drag handle */
    grid-template-columns: 40px 80px 1fr 80px 80px 80px 120px;
    gap: 0;
    color: white;
}

.table-header {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table-header>div {
    padding: 0 8px;
    display: flex;
    align-items: center;
    min-height: 60px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
}

.account-group-header {
    grid-column: 1 / -1; /* Span all columns in the grid */
    background-color: #1a1c20;
    color: #f5b721; /* Gold color for the text */
    padding: 8px 20px;
    font-weight: 600;
    font-size: 1.1em;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-top: 15px; /* Add some space above each new group */
}

.account-group-header:first-of-type {
    margin-top: 0; /* Remove margin from the very first header */
}

/* MODIFIED: Adjusted column indices */
.table-header>div:not(:nth-child(3)) {
    justify-content: center;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.2s;
}

.sortable-header:hover {
    /* Jade green on hover */
    color: #4CAF50;
}

.sort-indicator {
    display: inline-block;
    margin-left: 8px;
    opacity: 0;
    color: #fff;
    transition: opacity 0.2s;
}

.sortable-header.active .sort-indicator {
    opacity: 1;
}

#character-rows-container {
    display: contents;
}

.character-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.character-row:hover>div {
    /* Slightly lighter earthy background on hover */
    background-color: rgba(26, 36, 36, 0.7);
}

.character-row>div {
    /* Darker, earthy background for table rows */
    background-color: rgba(10, 20, 20, 0.5);
    display: flex;
    align-items: center;
    min-height: 80px;
    transition: background-color 0.3s;
}

/* NEW: Dragging state styles */
.character-row.dragging {
    opacity: 0.5;
    background: #4CAF50; /* Jade green for dragging */
}

/* NEW: Style for the drag handle cell */
.drag-handle-cell {
    justify-content: center;
    cursor: grab;
}

.drag-handle-cell:active {
    cursor: grabbing;
}

.drag-handle-cell svg {
    fill: #666;
    width: 20px;
    height: 20px;
}

.character-row:hover .drag-handle-cell svg {
    fill: #ccc;
}


/* MODIFIED: Changed the cursor for other cells */
.icon-cell,
.level-cell,
.name-cell,
.actions-cell {
    cursor: pointer;
}

.icon-cell,
.level-cell {
    justify-content: center;
}

.name-cell {
    padding: 0 12px;
    font-size: 1.1em;
}

.class-icon,
.profession-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* --- Class Colors --- */
/* These are standard WoW class colors, keeping them as is for recognition */
.warrior { color: #C79C6E; }
.paladin { color: #F58CBA; }
.hunter { color: #ABD473; }
.rogue { color: #FFF569; }
.priest { color: #FFFFFF; }
.deathknight { color: #C41F3B; }
.shaman { color: #0070DE; }
.mage { color: #69CCF0; }
.warlock { color: #8787ED; }
.monk { color: #00FF96; }
.druid { color: #FF7D0A; }


/* --- Tooltip Styles --- */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* Darker, earthy background for tooltip */
    background-color: #0A1414;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    /* Jade green border for tooltip */
    border: 1px solid #4CAF50;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    margin-bottom: 8px;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.actions-cell {
    justify-content: center;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s;
}

.action-btn svg {
    width: 22px;
    height: 22px;
    fill: #999;
    transition: fill 0.2s;
}

.edit-btn:hover { background-color: rgba(40, 167, 69, 0.15); }
.edit-btn:hover svg { fill: #28a745; }
.delete-btn:hover { background-color: rgba(196, 30, 59, 0.15); }
.delete-btn:hover svg { fill: #C41F3B; }

.no-characters-cell {
    grid-column: 1 / -1;
    padding: 20px;
    color: #888;
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

/* --- Character Page Styles --- */
#character-page-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

#character-details {
    color: #fff;
    /* Darker, earthy gradient for character details */
    background: linear-gradient(145deg, rgba(10, 20, 20, 0.7), rgba(26, 36, 36, 0.5));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 100px;
}

#character-details h1.character-name {
    margin: 0 0 25px 0;
    text-align: left;
    font-size: 2.5em;
    line-height: 1.1;
    border-bottom: 2px solid;
    padding-bottom: 15px;
    border-image-slice: 1;
}

/* Keeping class colors for specific elements */
.druid { border-image-source: linear-gradient(to right, #FF7D0A, #A33503); }
.mage { border-image-source: linear-gradient(to right, #69CCF0, #3D81A8); }
.warlock { border-image-source: linear-gradient(to right, #8787ED, #593695); }
.warrior { border-image-source: linear-gradient(to right, #C79C6E, #8C6A4C); }
.shaman { border-image-source: linear-gradient(to right, #0070DE, #245995); }
.monk { border-image-source: linear-gradient(to right, #00FF96, #00A862); }
.paladin { border-image-source: linear-gradient(to right, #F58CBA, #D45A8B); }
.rogue { border-image-source: linear-gradient(to right, #FFF569, #D4C43E); }
.death-knight { border-image-source: linear-gradient(to right, #C41F3B, #821025); }
.priest { border-image-source: linear-gradient(to right, #FFFFFF, #A3A3A3); }


.detail-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.detail-item:last-child { border-bottom: none; }
.detail-item strong { color: #aaa; font-weight: 600; }
.detail-item span { font-weight: 500; }

#character-details .button-group {
    margin-top: 20px;
    width: 100%;
    max-width: none;
}

.character-page-btn {
    flex: 1;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* Primary button color - Jade Green */
    background-color: #4CAF50;
}
.character-page-btn:hover {
    /* Lighter jade green on hover */
    background-color: #66BB6A;
    transform: translateY(-3px);
}

#recipes-display-section {
    /* Darker, earthy background for recipes section */
    background-color: rgba(10, 20, 20, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#recipes-display-section h2 {
    color: #fff;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

#learned-recipes-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#learned-recipes-list li {
    padding: 12px 15px;
    border-radius: 6px;
    background-color: rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
    border-left: 3px solid transparent;
}
#learned-recipes-list li:hover {
    background-color: rgba(0,0,0,0.4);
    /* Jade green border on hover */
    border-left-color: #4CAF50;
}

#learned-recipes-list li a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 500;
}

/* Keeping standard WoW quality colors */
#learned-recipes-list li a.q3 { color: #0070DD !important; }
#learned-recipes-list li a.q4 { color: #A335EE !important; }
#learned-recipes-list li a.q2 { color: #1EFF00 !important; }

#recipe-columns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recipe-column h2 {
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.recipe-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-list li {
    padding: 12px 15px;
    border-radius: 6px;
    background-color: rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
    border-left: 3px solid transparent;
}

.recipe-list li:hover {
    background-color: rgba(0,0,0,0.4);
    /* Jade green border on hover */
    border-left-color: #4CAF50;
}

.recipe-list li a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 500;
}


/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    /* Darker, earthy background for modal */
    background-color: #0A1414;
    padding: 30px;
    /* Jade green border for modal */
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #fff;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #bbb;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    /* Darker, earthy background for form inputs */
    background-color: #1A2424;
    color: #fff
}

.modal-content button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 40px auto 0 auto;
    height: 50px;
    /* Primary button color - Jade Green */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    /* Lighter jade green on hover */
    background-color: #66BB6A;
    transform: translateY(-3px);
}

.modal-content button[type="submit"]:active {
    transform: translateY(0);
}

.modal-error {
    color: #FF4D4D;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    margin-bottom: -20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-error.show {
    opacity: 1;
}

.addon-link-text {
    font-size: 0.8em;
    color: #bbb;
    text-align: center;
    margin-top: 8px;
}

.addon-link-text a {
    /* Jade green for links */
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.addon-link-text a:hover {
    text-decoration: underline;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23bbb" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* --- Success Overlay Styles --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker, earthy background for success overlay */
    background-color: rgba(10, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-message {
    color: #fff;
    font-size: 1.5em;
    margin-top: 20px;
    font-weight: 600;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    /* Jade green checkmark shadow */
    box-shadow: inset 0px 0px 0px #4CAF50;
}

.success-overlay.show .checkmark {
    animation: scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    /* Jade green checkmark circle */
    stroke: #4CAF50;
    fill: none;
}

.success-overlay.show .checkmark-circle {
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.success-overlay.show .checkmark-check {
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

/* --- Help Page Styles --- */
.help-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.help-page-container .page-title {
    text-align: center;
    margin-bottom: 40px;
}

.help-section {
    /* Darker, earthy background for help section */
    background-color: rgba(10, 20, 20, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.help-section h2 {
    font-size: 2em;
    font-weight: 600;
    /* Jade green for help section headings */
    color: #4CAF50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.help-subsection {
    margin-top: 25px;
}

.help-subsection h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.help-section p {
    line-height: 1.7;
    color: #ccc;
}

.help-section ul,
.help-section ol {
    padding-left: 20px;
    margin-top: 15px;
}

.help-section li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #ccc;
}

.help-section a {
    /* Jade green for links */
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.help-section a:hover {
    text-decoration: underline;
}

.help-section code {
    /* Darker, earthy background for code blocks */
    background-color: #0A1414;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    border: 1px solid #444;
}

.help-note {
    /* Lighter jade green for notes */
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9em;
    font-style: italic;
}

/* --- Footer Styles --- */
footer {
    width: 100%;
    padding: 40px 0 20px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-made-by a {
    /* Jade green for links */
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.footer-made-by a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    /* Darker, earthy button background */
    background-color: #1A2424;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.footer-links a:hover {
    /* Jade green on hover */
    background-color: #4CAF50;
}

footer span {
    color: #0c0c0c;
}

/* --- Page-Specific Footer Adjustments --- */
.page-index footer {
    margin-top: 150px;
}

.page-dashboard footer {
    margin-top: 80px;
}


/* --- Guild Page Styles --- */
.page-guild main {
    padding-top: 40px;
}

.guild-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-guild .page-title {
    text-align: center;
    margin-bottom: 40px;
}

#guild-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.guild-action-card {
    /* Darker, earthy background for guild action cards */
    background-color: rgba(10, 20, 20, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.guild-action-card h2 {
    font-size: 1.8em;
    font-weight: 600;
    /* Jade green for headings */
    color: #4CAF50;
    margin-bottom: 25px;
}

.guild-action-card .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.guild-action-card .hero-button {
    width: 100%;
    margin-top: 10px;
}

.hero-button-danger {
    background-color: #C41F3B !important;
}

.hero-button-danger:hover {
    background-color: #E03C58 !important;
}

#guild-info {
    /* Darker, earthy background for guild info */
    background-color: rgba(10, 20, 20, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guild-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

#guild-name {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
}

.guild-info-body {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

.guild-members-section h3, .guild-recipes-section h3 {
    font-size: 1.5em;
    font-weight: 600;
    /* Jade green for headings */
    color: #4CAF50;
    margin-bottom: 20px;
}

#guild-members, #guild-recipes {
    list-style: none;
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

#guild-members li, #guild-recipes li {
    background-color: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 1em;
}

.guild-recipes-section .search-container {
    margin-bottom: 20px;
}

#recipe-search {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #444;
    border-radius: 8px;
    /* Darker, earthy background for search input */
    background-color: #1A2424;
    color: #fff;
    font-size: 1em;
}

/* --- Guild Page: Invite Key Styles --- */
.guild-title-container {
    display: flex;
    flex-direction: column; /* This stacks the items vertically */
    align-items: flex-start;
    gap: 10px; /* Adds space between the name and the key */
    flex-grow: 1;
}

#guild-invite-key-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

#guild-invite-key {
    /* Darker, earthy background for invite key */
    background-color: #1A2424;
    border: 1px solid #444;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    color: #fff;
}

/* --- Dashboard Page: Display Name --- */
#display-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #ccc;
    font-size: 1.1em;
}

#user-display-name {
    color: #fff;
    font-weight: 600;
}

#edit-name-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: background-color 0.2s;
}

#edit-name-btn svg {
    width: 18px;
    height: 18px;
    fill: #999;
    transition: fill 0.2s;
}

#edit-name-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#edit-name-btn:hover svg {
    fill: #fff;
}

/* --- Guild Page: Member Dropdown Styles --- */
.guild-member-item {
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden; /* Important for the collapse animation */
    transition: background-color 0.2s ease;
}

.guild-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1em;
    color: #ccc;
    font-weight: 400;
}

.guild-member-item:hover .guild-member-header {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-arrow {
    fill: #ccc;
    transition: transform 0.3s ease;
}

.guild-member-item.open .dropdown-arrow {
    transform: rotate(180deg);
}

.member-character-list {
    list-style: none;
    padding: 0;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.guild-member-item.open .member-character-list {
    max-height: 500px; /* Or a sufficiently large value */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0px;
}

.member-character-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.member-character-list li:last-child {
    border-bottom: none;
}

.character-name {
    font-weight: 400;
}

/* --- Guild Page: Profession Icon Styles --- */
.profession-icon-container {
    display: flex;
    align-items: center;
    gap: 6px; /* Space between icons */
}

.profession-icon-container img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #555;
}

/* Make sure the character list item aligns everything nicely */
.member-character-list li {
    display: flex;
    justify-content: space-between;
    align-items: center; /* This is new */
}

/* --- Guild Page: Custom Scrollbar Styles --- */
/* This targets the main members list, the main recipe list,
   and the character dropdown lists within the member items. */

/* Works on Firefox */
#guild-members,
#guild-recipes,
.member-character-list {
  scrollbar-width: thin;
  /* Jade green scrollbar thumb */
  scrollbar-color: #4CAF50 rgba(0, 0, 0, 0.2);
}

/* Works on Chrome, Edge, and Safari */
#guild-members::-webkit-scrollbar,
#guild-recipes::-webkit-scrollbar,
.member-character-list::-webkit-scrollbar {
  width: 10px;
}

#guild-members::-webkit-scrollbar-track,
#guild-recipes::-webkit-scrollbar-track,
.member-character-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

#guild-members::-webkit-scrollbar-thumb,
#guild-recipes::-webkit-scrollbar-thumb,
.member-character-list::-webkit-scrollbar-thumb {
  /* Jade green scrollbar thumb */
  background-color: #4CAF50;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

#guild-members::-webkit-scrollbar-thumb:hover,
#guild-recipes::-webkit-scrollbar-thumb:hover,
.member-character-list::-webkit-scrollbar-thumb:hover {
  /* Lighter jade green on hover */
  background-color: #66BB6A;
}

/* --- Guild Page: New Recipe List Styles --- */
.recipe-column-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

.recipe-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profession-group {
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.profession-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    /* Lighter jade green background for profession headers */
    background-color: rgba(76, 175, 80, 0.1);
}

.profession-header h3 {
    font-size: 1.2em;
    font-weight: 600;
    /* Jade green for profession headers */
    color: #4CAF50;
    margin: 0;
}

.profession-group.open .dropdown-arrow {
    transform: rotate(180deg);
}

.recipe-sublist {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.profession-group.open .recipe-sublist {
    max-height: 20000px; /* Or a sufficiently large value */
}

.recipe-item {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9em;
    overflow: hidden;
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}
.recipe-item:hover .recipe-header {
    background-color: rgba(255,255,255,0.05);
}

.crafter-count {
    /* Primary button color - Jade Green */
    background-color: #4CAF50;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.crafter-sublist {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.recipe-item.open .crafter-sublist {
    max-height: 2000px;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.1);
}

.crafter-sublist li {
    padding: 4px 0;
    color: #ccc;
}

.crafter-sublist p {
    font-size: 0.8em;
}

/* --- Guild Page: Owner Icon --- */
.member-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.owner-icon {
    fill: #FFD700; /* Gold color for the crown (Pandaria often has gold accents) */
    height: 20px;
    width: 20px;
}

/* --- Guild Page: Crafter Tooltip Position Fix --- */
.crafter-sublist li[data-tooltip]::after {
    bottom: auto; /* Unset the default "bottom" positioning */
    margin-bottom: 0; /* Remove the default bottom margin */
    margin-top: 8px; /* Add some space below the list item */
}

/* --- Guild Management Modal and Icon Styles --- */
#open-guild-management-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s;
}

#open-guild-management-btn svg {
    width: 22px;
    height: 22px;
    fill: #999;
    transition: fill 0.2s;
}

#open-guild-management-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
#open-guild-management-btn:hover svg { fill: #fff; }

#guild-management-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

#guild-management-actions .hero-button {
    width: 100%;
    margin: 0;
}

/* Container for member actions to fix alignment */
.member-actions-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Fix for Guild Modal Button Colors --- */
#modal-edit-name-btn {
    background-color: #4CAF50; /* Primary jade green color */
}

#modal-edit-name-btn:hover {
    background-color: #66BB6A; /* Lighter jade green on hover */
}

/* --- Fix for Guild Button Colors and Padding --- */

/* Applies correct jade green color to Create and Join Guild buttons */
#create-guild-btn,
#join-guild-btn {
    background-color: #4CAF50;
}

/* Adds a consistent hover effect */
#create-guild-btn:hover,
#join-guild-btn:hover {
    background-color: #66BB6A;
    transform: translateY(-3px);
}

/* Adds horizontal padding to buttons in the guild header for better sizing */
#guild-header-actions .hero-button {
    padding-left: 25px;
    padding-right: 25px;
    flex: 0 0 auto; /* Prevents the button from shrinking too much */
}

.hero-button {
    flex: 1;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    border-radius: 10px;
    transition: all 0.4s;
    white-space: nowrap;
    border: none; /* Add this line */
}

/* New Auth Modal Specific Styles */
.modal-text-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.modal-text-link span {
    /* Jade green for links */
    color: #4CAF50;
    cursor: pointer;
    text-decoration: underline;
}

.modal-separator {
    text-align: center;
    margin: 25px 0;
    color: #ccc;
    font-size: 0.9em;
    position: relative;
}

.modal-separator::before,
.modal-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-separator::before {
    left: 0;
}

.modal-separator::after {
    right: 0;
}

.google-button {
    background-color: #4285F4; /* Keeping Google's color for brand consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0 auto;
    max-width: 250px;
    width: 100%;
    /* Ensure no text-related properties interfere with SVG */
    line-height: 1; /* Reset line-height to prevent vertical misalignment issues */
    overflow: hidden; /* Ensure nothing overflows the button's boundaries */
}

.google-button:hover {
    background-color: #357ae8; /* Darker blue on hover */
    transform: translateY(-3px);
}

/* --- Onboarding Page Styles --- */
.page-onboarding main {
    padding-top: 40px; /* Adjust top padding for main content on this page */
}

.onboarding-container {
    max-width: 800px; /* Set a max-width for the content */
    margin: 0 auto; /* Center the container horizontally */
    padding: 20px 0; /* Add some vertical padding */
    color: #fff; /* Default text color for the container */
}

.onboarding-container .page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 3em; /* Slightly smaller than hero, larger than section title */
    /* Jade green for title */
    color: #4CAF50; /* Highlight the title */
}

.onboarding-intro {
    text-align: center;
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.onboarding-section {
    /* Darker, earthy background for onboarding sections */
    background-color: rgba(10, 20, 20, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px; /* Space between sections */
}

.onboarding-section h2 {
    font-size: 2em; /* Consistent with help section headings */
    font-weight: 600;
    /* Jade green for headings */
    color: #4CAF50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.onboarding-section p {
    line-height: 1.7;
    color: #ccc; /* Lighter text for readability */
    margin-bottom: 15px;
}

.onboarding-section p:last-child {
    margin-bottom: 0; /* No margin on the last paragraph in a section */
}

.onboarding-section a {
    /* Jade green for links */
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.onboarding-section a:hover {
    text-decoration: underline;
}

/* Specific button group for onboarding sections */
.onboarding-section .button-group {
    justify-content: flex-start; /* Align buttons to the left */
    margin-top: 25px; /* Space above buttons */
    max-width: none; /* Let them take natural width or flex-grow */
}

/* Individual buttons within onboarding sections */
#addon-download-btn,
#companion-download-btn {
    /* Primary jade green */
    background-color: #4CAF50;
    flex: none; /* Prevent them from stretching to fill space */
    width: auto; /* Take natural width */
    padding: 12px 25px; /* Add horizontal padding */
    color: #fff;
}

#addon-download-btn:hover,
#companion-download-btn:hover {
    /* Lighter jade green on hover */
    background-color: #66BB6A;
    transform: translateY(-3px);
}

/* Styling for the final "Continue to Dashboard" button */
.onboarding-actions {
    text-align: center; /* Center the button container */
    margin-top: 50px; /* More space above the final button */
}

#onboarding-continue-btn {
    /* Primary jade green */
    background-color: #4CAF50;
    width: auto; /* Take natural width */
    padding-left: 30px;
    padding-right: 30px;
    height: 50px;
    font-size: 1.2em; /* Make it stand out */
    font-weight: 700;
    border-radius: 10px;
    display: inline-block; /* To allow text-align: center on parent */
}

#onboarding-continue-btn:hover {
    /* Lighter jade green with shadow on hover */
    background-color: #66BB6A;
    box-shadow: 0 0 15px 5px rgba(76, 175, 80, 0.6), 0 0 50px 20px rgba(76, 175, 80, 0.35);
    transform: translateY(-3px) scale(1.02);
}

/* --- Cooldowns Section (Dashboard) --- */
#collapsible-cooldowns-section {
    margin: 20px 0;
    /* Darker, earthy background */
    background-color: rgba(10, 20, 20, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#cooldowns-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
}

#cooldowns-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#cooldowns-container {
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.3s ease-in-out;
}

#cooldowns-container.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
}

.cooldown-row {
    display: grid;
    grid-template-columns: 1fr 150px 120px;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.cooldown-row:hover {
    background-color: rgba(0,0,0,0.4);
    /* Jade green border on hover */
    border-left-color: #4CAF50;
}

.cooldown-spell-name {
    font-weight: 600;
    color: #E0E0E0;
    font-size: 1.1em;
}

.cooldown-char-name {
    font-weight: 500;
}

.cooldown-timer {
    font-weight: 400;
    /* Keeping this green, as it's a "timer" color */
    color: #00FF96;
    text-align: right;
    font-family: Inter;
}

.no-cooldowns-cell {
    padding: 20px;
    color: #888;
    font-style: italic;
    text-align: center;
}


/* --- Cooldowns Section (Character Page) --- */
#character-cooldowns-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#character-cooldowns-container h3 {
    font-size: 1.2em;
    font-weight: 600;
    /* Jade green for headings */
    color: #4CAF50;
    margin: 0 0 15px 0;
}

.character-cooldowns-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.character-cooldowns-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.character-cooldowns-list .cooldown-name {
    font-weight: 500;
    color: #E0E0E0;
}

/* Make the account header a flex container to align the name and button */
.account-group-header {
    /* ... (existing styles) */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style for the new rename button */
.rename-account-btn {
    background: none;
    border: none;
    color: #8a8a8a;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rename-account-btn:hover {
    color: #fff;
    background-color: #333;
}

.rename-account-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Style for the text in the new modal */
.form-description {
    color: #ccc;
    margin-bottom: 20px;
    text-align: center;
}
.form-description strong {
    color: #f5b721;
    font-weight: 600;
}