:root {
    --wow-gold: #f8b700;
    --wow-dark: #211510;
    --wow-brown: #2f1810;
    --wow-light: #d3bc8e;
    --wow-red: #f44336;
    --wow-green: #4caf50;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--wow-dark);
    color: var(--wow-light);
    font-family: "Cinzel", serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url("/assets/wow-bg.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    padding: 10px;
}

.screen.active {
    display: block;
}

/* Container */
.container {
    background-color: rgba(33, 21, 16, 0.95);
    border: 2px solid var(--wow-gold);
    border-radius: 8px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
}

/* Typography */
h1 {
    color: var(--wow-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0 0 20px 0;
    font-size: 1.8rem;
}

h2 {
    color: var(--wow-gold);
    font-size: 1.3rem;
    margin: 15px 0;
}

h3 {
    color: var(--wow-gold);
    font-size: 1.1rem;
    margin: 10px 0;
}

/* Buttons */
.wow-button {
    background-color: var(--wow-gold);
    color: var(--wow-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: "Cinzel", serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.wow-button:hover {
    background-color: #fff;
    box-shadow: 0 0 10px var(--wow-gold);
}

.wow-button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.wow-button.icon-button {
    padding: 10px 15px;
    font-size: 1.2rem;
}

.wow-button.full-width {
    width: 100%;
}

.wow-button.danger {
    background-color: var(--wow-red);
    color: white;
}

.wow-button.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Inputs */
.wow-input {
    background-color: rgba(47, 24, 16, 0.9);
    border: 1px solid var(--wow-gold);
    color: var(--wow-light);
    padding: 12px;
    border-radius: 4px;
    font-family: "Cinzel", serif;
    width: 100%;
    font-size: 1rem;
}

.wow-input:focus {
    outline: none;
    box-shadow: 0 0 5px var(--wow-gold);
}

.wow-input::placeholder {
    color: rgba(211, 188, 142, 0.5);
}

select.wow-input {
    cursor: pointer;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--wow-gold);
    font-size: 0.9rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wow-gold);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-info {
    color: var(--wow-gold);
    font-size: 0.9rem;
}

/* Status Cards */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.status-card {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 4px;
    padding: 15px;
}

.status-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.status-card p {
    margin: 0;
    display: flex;
    align-items: center;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #666;
}

.status-connected {
    background-color: var(--wow-green);
}

.status-error {
    background-color: var(--wow-red);
}

/* Needs Attention Highlight Card */
.highlight-card {
    background: linear-gradient(135deg, var(--wow-brown) 0%, rgba(248, 183, 0, 0.15) 100%);
    border: 2px solid var(--wow-gold);
    box-shadow: 0 0 10px rgba(248, 183, 0, 0.3);
}

.highlight-card h3 {
    color: var(--wow-gold);
    font-size: 1rem;
    margin-bottom: 12px;
}

.highlight-content {
    min-height: 60px;
}

.highlight-loading {
    color: var(--wow-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

.highlight-character {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.highlight-char-name {
    color: var(--wow-gold);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.highlight-char-name:hover {
    text-decoration: underline;
}

.highlight-activity-score {
    font-size: 0.8rem;
    color: var(--wow-light);
    opacity: 0.8;
}

.highlight-suggestion {
    font-size: 0.85rem;
    color: var(--wow-light);
    margin-top: 4px;
    line-height: 1.3;
}

.highlight-action-btn {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.highlight-no-chars {
    color: var(--wow-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-bar .wow-button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-bar .btn-icon {
    font-size: 1.1em;
}

.action-bar .btn-text {
    display: inline;
}

/* Filter Section */
.filter-section {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
    transition: background-color 0.2s;
}

.filter-header:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.filter-title {
    color: var(--wow-gold);
    font-weight: bold;
    font-size: 1rem;
}

.filter-toggle-icon {
    color: var(--wow-gold);
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-toggle-icon {
    transform: rotate(-90deg);
}

.filter-section.collapsed .filter-content {
    display: none;
}

.filter-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    color: var(--wow-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    max-width: none;
}

.filter-search {
    width: 100%;
    max-width: none;
}

.character-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* Warband View */
.warband-group {
    margin-bottom: 25px;
    width: 100%;
    grid-column: 1 / -1;
}

.warband-header {
    color: var(--wow-gold);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.4);
}

.warband-chars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.character-card {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(248, 183, 0, 0.3);
}

.character-card .char-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.char-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.character-card .char-name {
    color: var(--wow-gold);
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.character-card .char-level {
    background-color: var(--wow-gold);
    color: var(--wow-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.character-card .char-info {
    font-size: 0.85rem;
    color: var(--wow-light);
    margin: 5px 0;
}

.character-card .char-realm {
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.8rem;
}

.character-card .char-friend-info {
    color: rgba(100, 180, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 5px;
}

.character-card .char-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.character-card .task-badge {
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.3), rgba(100, 150, 255, 0.2));
    border: 1px solid rgba(100, 180, 255, 0.5);
    color: #a8d4ff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.character-card .char-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(248, 183, 0, 0.3);
}

/* Class colors */
.class-warrior { color: #C69B6D; }
.class-paladin { color: #F48CBA; }
.class-hunter { color: #AAD372; }
.class-rogue { color: #FFF468; }
.class-priest { color: #FFFFFF; }
.class-death-knight { color: #C41E3A; }
.class-shaman { color: #0070DD; }
.class-mage { color: #3FC7EB; }
.class-warlock { color: #8788EE; }
.class-monk { color: #00FF98; }
.class-druid { color: #FF7C0A; }
.class-demon-hunter { color: #A330C9; }
.class-evoker { color: #33937F; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background-color: var(--wow-dark);
    border: 2px solid var(--wow-gold);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    animation: modalSlideIn 0.3s ease;
}

.character-details-modal {
    max-width: 1100px;
    width: 95%;
}

.character-details-modal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* Wide Settings Modal */
.settings-modal-wide {
    max-width: 900px;
    width: 95%;
}

.settings-modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* AI Settings Grid Layout */
.ai-settings-section {
    padding: 15px;
}

.ai-provider-settings {
    margin-top: 10px;
    padding: 15px;
    background: rgba(47, 24, 16, 0.5);
    border: 1px solid var(--wow-gold);
    border-radius: 6px;
}

.ai-model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .ai-model-grid {
        grid-template-columns: 1fr;
    }
}

.ai-pricing-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--wow-gold);
    text-decoration: none;
    font-size: 0.9em;
}

.ai-pricing-link:hover {
    text-decoration: underline;
    color: var(--wow-light);
}

/* Provider actions row */
.ai-provider-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.test-ai-btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* AI Test Result */
.ai-test-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.ai-test-result:empty {
    display: none;
}

.ai-test-result .test-loading {
    color: var(--wow-gold);
}

.ai-test-result .test-success {
    color: var(--wow-green, #4ade80);
}

.ai-test-result .test-error {
    color: var(--wow-red, #ef4444);
}

.test-model-result {
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85em;
}

.test-model-result.success {
    background: rgba(74, 222, 128, 0.1);
    color: var(--wow-green, #4ade80);
}

.test-model-result.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--wow-red, #ef4444);
}

/* Custom Model Input */
.custom-model-group {
    margin-top: 10px;
}

.custom-model-grid {
    margin-top: 15px;
}

.custom-model-hint {
    display: block;
    font-size: 0.8em;
    color: #999;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* AI Model Toggle in Chat Header */
.ai-model-toggle {
    display: flex;
    gap: 5px;
    margin-left: auto;
    margin-right: 15px;
}

.ai-model-btn {
    padding: 5px 12px;
    background: rgba(47, 24, 16, 0.8);
    border: 1px solid var(--wow-gold);
    color: var(--wow-light);
    font-size: 0.85em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.ai-model-btn:hover {
    background: rgba(248, 183, 0, 0.2);
}

.ai-model-btn.active {
    background: var(--wow-gold);
    color: var(--wow-dark);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--wow-gold);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--wow-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

/* Error/Success Messages */
.error-message {
    color: var(--wow-red);
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
}

.success-message {
    color: var(--wow-green);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Logs */
.logs-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--wow-gold);
}

.logs-list {
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 10px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.2);
    font-size: 0.85rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.75rem;
}

.log-type {
    color: var(--wow-gold);
    font-weight: bold;
    margin: 0 10px;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--wow-gold);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--wow-light);
    padding: 10px 20px;
    cursor: pointer;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--wow-gold);
}

.tab-btn.active {
    background-color: var(--wow-brown);
    border-color: var(--wow-gold);
    color: var(--wow-gold);
    border-radius: 4px 4px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

/* Users List */
.users-list {
    display: grid;
    gap: 10px;
}

.user-card {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.user-info-block {
    flex: 1;
    min-width: 200px;
}

.user-name {
    color: var(--wow-gold);
    font-weight: bold;
    font-size: 1rem;
}

.user-email {
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.85rem;
}

.user-badges {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.badge-admin {
    background-color: var(--wow-gold);
    color: var(--wow-dark);
}

.badge-inactive {
    background-color: var(--wow-red);
    color: white;
}

.user-actions {
    display: flex;
    gap: 5px;
}

/* Settings */
.settings-section {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
}

.test-result {
    margin-left: 10px;
    font-size: 0.9rem;
}

.test-result.success {
    color: var(--wow-green);
}

.test-result.error {
    color: var(--wow-red);
}

/* Links */
.register-link {
    margin-top: 20px;
    font-size: 0.9rem;
}

.register-link a {
    color: var(--wow-gold);
    text-decoration: none;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: rgba(211, 188, 142, 0.6);
}

/* Character Details */
.character-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.character-details .character-appearance-section {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* Collapsible section styles */
.detail-section {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 4px;
    padding: 15px;
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.detail-section-header h3 {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-toggle-icon {
    font-size: 0.8rem;
    color: var(--wow-gold);
    transition: transform 0.3s ease;
}

.detail-section.collapsed .section-toggle-icon {
    transform: rotate(-90deg);
}

.detail-section-content {
    padding-top: 15px;
    border-top: 1px solid rgba(248, 183, 0, 0.3);
    margin-top: 15px;
}

.detail-section.collapsed .detail-section-content {
    display: none;
}

.detail-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
}

/* Responsive layout for smaller screens */
@media (max-width: 900px) {
    .character-details {
        grid-template-columns: 1fr;
    }
    
    .character-details .character-appearance-section {
        grid-column: auto;
        grid-row: auto;
    }
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.detail-label {
    color: rgba(211, 188, 142, 0.7);
}

.detail-value {
    color: var(--wow-light);
    font-weight: bold;
}

.professions-list {
    display: grid;
    gap: 10px;
}

.profession-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.profession-name {
    font-weight: bold;
}

.profession-level {
    color: var(--wow-gold);
}

.notes-list {
    display: grid;
    gap: 10px;
}

.note-item {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    position: relative;
}

.note-text {
    margin-bottom: 5px;
}

.note-date {
    color: rgba(211, 188, 142, 0.5);
    font-size: 0.8rem;
}

.note-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.add-note-form {
    margin-top: 15px;
}

.add-note-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Main Tasks Section */
.main-tasks-description {
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.main-tasks-form {
    display: grid;
    gap: 10px;
}

.main-tasks-form .input-group {
    margin-bottom: 5px;
}

.main-tasks-form .input-group label {
    font-size: 0.85rem;
    color: rgba(211, 188, 142, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 15px;
        margin: 5px;
        border-radius: 4px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
    }

    .status-cards {
        grid-template-columns: 1fr;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .action-bar .wow-button {
        width: auto;
        padding: 10px 12px;
    }

    .action-bar .btn-text {
        display: none;
    }

    .action-bar .btn-icon {
        font-size: 1.3em;
    }

    .modal-content {
        margin: 10px;
        max-width: none;
    }

    .user-card {
        flex-direction: column;
        align-items: stretch;
    }

    .user-actions {
        justify-content: flex-end;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .login-container {
        margin: 20px auto;
    }

    h1 {
        font-size: 1.2rem;
    }

    .wow-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .character-card {
        padding: 12px;
    }

    .character-card .char-name {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wow-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--wow-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--wow-dark);
    border: 2px solid var(--wow-gold);
    border-radius: 8px;
    padding: 15px 20px;
    display: none;
    z-index: 1001;
    text-align: center;
    max-width: 90%;
}

.install-prompt.show {
    display: block;
}

.install-prompt p {
    margin: 0 0 10px 0;
}

.install-prompt .buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Realm Hint */
.realm-hint {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 4px;
    font-family: sans-serif;
}

/* Datalist styling - improve visibility */
input[list]::-webkit-calendar-picker-indicator {
    display: none;
}

datalist {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
}

/* Settings section spacing */
.settings-section + .settings-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--wow-gold);
}

/* Settings description */
.settings-description {
    color: rgba(211, 188, 142, 0.8);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Export/Import buttons */
.export-import-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Faction colors */
.faction-alliance {
    color: #0078ff;
}

.faction-horde {
    color: #ff2222;
}

.char-faction {
    font-weight: bold;
}

/* API Status Section */
.api-status-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--wow-gold);
}

.api-status-list {
    max-height: 200px;
    overflow-y: auto;
}

.api-status-entry {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.2);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.api-status-entry:last-child {
    border-bottom: none;
}

.api-time {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.75rem;
}

.api-type {
    color: var(--wow-gold);
    font-weight: bold;
}

.api-target {
    color: var(--wow-light);
}

.api-result {
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.75rem;
}

.api-result.success {
    color: var(--wow-green);
}

/* Character Appearance Section */
.character-appearance-section {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
    width: 100%;
}

.character-image-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.character-render-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--wow-gold);
}

.no-image {
    font-size: 5rem;
    opacity: 0.5;
}

.loading-small {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.85rem;
}

/* Achievement Styles */
.achievement-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.achievement-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.achievement-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--wow-gold);
}

.achievement-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(211, 188, 142, 0.7);
    margin-top: 5px;
}

.recent-achievements-list {
    max-height: 150px;
    overflow-y: auto;
}

.achievement-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 5px;
}

.achievement-name {
    color: var(--wow-light);
}

.achievement-link {
    text-decoration: none;
    color: var(--wow-gold);
    transition: color 0.2s;
}

.achievement-link:hover {
    color: #fff;
    text-decoration: underline;
}

.achievement-link .achievement-name {
    color: inherit;
}

.achievement-date {
    color: rgba(211, 188, 142, 0.5);
    font-size: 0.75rem;
}

/* API Professions Section */
.api-professions-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(248, 183, 0, 0.2);
}

.api-professions-section h4 {
    margin-bottom: 10px;
    color: var(--wow-gold);
    font-size: 0.9rem;
}

.api-profession-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.api-profession-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.15);
}

.api-profession-header .profession-name {
    font-weight: bold;
    color: var(--wow-gold);
}

.api-profession-header .profession-type {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.8rem;
}

.api-profession-tiers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.api-profession-tier {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
}

.api-profession-tier .tier-name {
    color: var(--wow-light);
}

.api-profession-tier .tier-level {
    color: var(--wow-gold);
    font-weight: bold;
}

.no-api-profs {
    color: rgba(211, 188, 142, 0.5);
    font-style: italic;
    font-size: 0.85rem;
}

/* ========== Goals Modal Styles (Daily Quest Cyan Theme) ========== */
:root {
    --quest-cyan: #00d4ff;
    --quest-cyan-dark: #00a6c7;
    --quest-cyan-light: #66e5ff;
    --quest-cyan-glow: rgba(0, 212, 255, 0.3);
}

.goals-button {
    background: linear-gradient(180deg, var(--quest-cyan) 0%, var(--quest-cyan-dark) 100%);
    border: 2px solid var(--quest-cyan-light);
    color: #000;
    text-shadow: none;
    font-weight: bold;
}

.goals-button:hover {
    background: linear-gradient(180deg, var(--quest-cyan-light) 0%, var(--quest-cyan) 100%);
    box-shadow: 0 0 15px var(--quest-cyan-glow);
}

.goals-modal {
    max-width: 700px;
    border-color: var(--quest-cyan);
}

.goals-header {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.2) 0%, transparent 100%);
    border-bottom: 1px solid var(--quest-cyan);
}

.goals-header h2 {
    color: var(--quest-cyan);
}

.goals-body {
    padding: 0;
}

.goals-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.goals-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--wow-light);
    cursor: pointer;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.goals-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--quest-cyan);
}

.goals-tab.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--quest-cyan);
    border-bottom: 2px solid var(--quest-cyan);
}

.goals-tab-content {
    display: none;
    padding: 15px;
}

.goals-tab-content.active {
    display: block;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.goal-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s;
}

.goal-item:hover {
    border-color: var(--quest-cyan);
    box-shadow: 0 0 10px var(--quest-cyan-glow);
}

.goal-item.completed {
    opacity: 0.6;
    border-color: rgba(76, 175, 80, 0.5);
}

.goal-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--quest-cyan);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.goal-checkbox:hover {
    background: rgba(0, 212, 255, 0.2);
}

.goal-checkbox.checked {
    background: var(--wow-green);
    border-color: var(--wow-green);
}

.goal-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.goal-content {
    flex: 1;
}

.goal-title {
    color: var(--quest-cyan);
    font-weight: bold;
    margin-bottom: 4px;
}

.goal-description {
    color: var(--wow-light);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.goal-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: rgba(211, 188, 142, 0.6);
}

.goal-character {
    color: var(--quest-cyan-light);
}

.goal-type {
    background: rgba(0, 212, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--quest-cyan);
}

.goal-progress {
    margin-top: 8px;
}

.goal-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--quest-cyan-dark), var(--quest-cyan));
    border-radius: 3px;
    transition: width 0.3s;
}

.goal-progress-text {
    font-size: 0.75rem;
    color: var(--quest-cyan);
    margin-top: 4px;
}

.goal-actions {
    display: flex;
    gap: 5px;
}

.goal-delete-btn {
    background: transparent;
    border: 1px solid var(--wow-red);
    color: var(--wow-red);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.goal-delete-btn:hover {
    background: var(--wow-red);
    color: white;
}

.add-goal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-goal-form .input-group label {
    color: var(--quest-cyan);
}

.goal-description {
    min-height: 80px;
    resize: vertical;
}

.no-goals {
    text-align: center;
    color: rgba(211, 188, 142, 0.5);
    padding: 30px;
    font-style: italic;
}

/* Reputations Section */
.reputations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reputation-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px;
}

.reputation-standing-header {
    color: var(--wow-gold);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(211, 188, 142, 0.2);
    padding-bottom: 4px;
}

.reputation-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reputation-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 2px 0;
}

.reputation-name {
    color: var(--wow-light);
}

.reputation-value {
    color: rgba(211, 188, 142, 0.6);
}

.reputation-more {
    color: rgba(211, 188, 142, 0.5);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 4px;
}

.no-reputations {
    color: rgba(211, 188, 142, 0.5);
    font-style: italic;
}

/* Goal Status Display */
.goal-status-display {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--quest-cyan-dark);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

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

.status-label {
    color: var(--quest-cyan);
    font-weight: bold;
}

.status-value {
    color: var(--wow-gold);
    font-size: 1.1rem;
}

.current-professions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-header {
    color: var(--quest-cyan);
    font-weight: bold;
    margin-bottom: 4px;
}

.status-profession {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.status-profession .prof-name {
    color: var(--wow-gold);
    font-weight: bold;
}

.status-profession .prof-level {
    color: var(--wow-light);
    font-size: 0.9rem;
}

.status-profession .prof-tiers {
    font-size: 0.8rem;
    color: rgba(211, 188, 142, 0.7);
}

.tier-info {
    display: inline-block;
    margin-right: 8px;
}

.no-professions-status {
    color: rgba(211, 188, 142, 0.5);
    font-style: italic;
}

/* Achievement Search Results */
.achievement-search-results {
    position: absolute;
    background: var(--modal-bg);
    border: 1px solid var(--wow-gold);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 2px);
    left: 0;
    top: 100%;
}

#goalTargetGroup {
    position: relative;
}

.achievement-result {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(211, 188, 142, 0.1);
}

.achievement-result:hover {
    background: rgba(0, 212, 255, 0.2);
}

.achievement-result:last-child {
    border-bottom: none;
}

.ach-name {
    color: var(--wow-light);
}

.ach-points {
    color: var(--wow-gold);
    font-size: 0.9rem;
}

.achievement-search-results .no-results {
    padding: 15px;
    text-align: center;
    color: rgba(211, 188, 142, 0.5);
    font-style: italic;
}


/* ========== Quick Goal Icon (Cyan ? like WoW daily quests) ========== */
.quest-goal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(180deg, var(--quest-cyan) 0%, var(--quest-cyan-dark) 100%);
    border: 1px solid var(--quest-cyan-light);
    border-radius: 50%;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    font-family: "Cinzel", serif;
    transition: all 0.2s;
    flex-shrink: 0;
}

.quest-goal-icon:hover {
    background: linear-gradient(180deg, var(--quest-cyan-light) 0%, var(--quest-cyan) 100%);
    box-shadow: 0 0 10px var(--quest-cyan-glow);
    transform: scale(1.1);
}

/* Goal created notification */
.goal-created-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--quest-cyan) 0%, var(--quest-cyan-dark) 100%);
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: "Cinzel", serif;
    font-weight: bold;
    z-index: 10000;
    animation: slideUp 0.3s ease, fadeOut 0.5s ease 1.5s forwards;
    box-shadow: 0 4px 15px var(--quest-cyan-glow);
    border: 2px solid var(--quest-cyan-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Adjust profession tier and reputation item layout for the icon */
.api-profession-tier {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reputation-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sync notification */
.sync-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(180deg, var(--quest-cyan) 0%, var(--quest-cyan-dark) 100%);
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: "Cinzel", serif;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 15px var(--quest-cyan-glow);
    border: 2px solid var(--quest-cyan-light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.sync-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Tasks Button (Orange/Yellow like Weekly Quests) */
.tasks-button {
    background: linear-gradient(180deg, #ff9800 0%, #e65100 100%);
    border: 2px solid #ffb74d;
    color: #000;
    text-shadow: none;
    font-weight: bold;
}

.tasks-button:hover {
    background: linear-gradient(180deg, #ffb74d 0%, #ff9800 100%);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

/* Tasks Modal */
.tasks-modal {
    max-width: 700px;
    border-color: #ff9800;
}

.tasks-header {
    background: linear-gradient(180deg, rgba(255, 152, 0, 0.2) 0%, transparent 100%);
    border-bottom: 1px solid #ff9800;
}

.tasks-header h2 {
    color: #ff9800;
}

.tasks-body {
    padding: 0;
}

.tasks-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
}

.tasks-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--wow-light);
    cursor: pointer;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tasks-tab:hover {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.tasks-tab.active {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border-bottom: 2px solid #ff9800;
}

.tasks-tab-content {
    display: none;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.tasks-tab-content.active {
    display: block;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tasks-controls {
    margin-bottom: 10px;
    text-align: right;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 6px;
    transition: all 0.2s;
}

.task-item:hover {
    background: rgba(255, 152, 0, 0.2);
}

.task-item.completed {
    opacity: 0.6;
    background: rgba(100, 100, 100, 0.1);
    border-color: rgba(100, 100, 100, 0.3);
}

.task-item.completed .task-info {
    text-decoration: line-through;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ff9800;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ff9800;
    flex-shrink: 0;
}

.task-checkbox:hover {
    background: rgba(255, 152, 0, 0.2);
}

.task-checkbox.checked {
    background: #ff9800;
    color: #000;
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: bold;
    color: var(--wow-gold);
}

.task-character {
    font-size: 0.8rem;
    color: var(--wow-light);
    opacity: 0.7;
}

.task-description {
    font-size: 0.85rem;
    color: var(--wow-light);
    margin-top: 4px;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.task-delete-btn {
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ff6b6b;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.task-delete-btn:hover {
    background: rgba(255, 100, 100, 0.2);
}

.task-reset-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    flex-shrink: 0;
}

.task-reset-badge.daily {
    background: rgba(255, 152, 0, 0.3);
    color: #ffa726;
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.task-reset-badge.weekly {
    background: rgba(156, 39, 176, 0.3);
    color: #ba68c8;
    border: 1px solid rgba(156, 39, 176, 0.5);
}

.task-item.upcoming {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.task-item.history {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.task-completed-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.task-completed-date {
    font-size: 0.75rem;
    color: #9e9e9e;
    margin-top: 2px;
}

.tasks-info {
    font-size: 0.9rem;
    color: var(--wow-light);
    opacity: 0.8;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
}

.tasks-success {
    color: #4caf50 !important;
    text-align: center;
    padding: 20px;
}

.add-task-form {
    padding: 10px;
}

.task-description {
    min-height: 60px;
    resize: vertical;
}

/* Compare Modal */
.compare-modal {
    max-width: 900px;
}

.compare-body {
    padding: 20px;
}

.compare-selectors {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.compare-selector {
    flex: 1;
}

.compare-selector label {
    display: block;
    margin-bottom: 5px;
    color: var(--wow-gold);
}

.compare-vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--wow-gold);
    padding: 30px 10px 0 10px;
}

.comparison-result {
    border-top: 1px solid rgba(139, 69, 19, 0.5);
    padding-top: 20px;
}

.compare-hint {
    text-align: center;
    color: var(--wow-light);
    opacity: 0.7;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 150px 1fr;
    gap: 10px;
    text-align: center;
}

.comparison-header {
    font-weight: bold;
    color: var(--wow-gold);
    padding: 10px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 4px;
}

.comparison-row {
    display: contents;
}

.comparison-cell {
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.comparison-label {
    color: var(--wow-gold);
    font-weight: bold;
}

.comparison-label-different {
    color: #ff6b6b;
    font-weight: bold;
}

.comparison-winner {
    color: #4caf50;
    font-weight: bold;
}

.comparison-loser {
    color: #ff6b6b;
}

.comparison-tie {
    color: var(--wow-light);
}

/* Comparison Sections (Professions/Reputations) */
.comparison-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 69, 19, 0.5);
}

.comparison-section-title {
    color: var(--wow-gold);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    text-align: center;
}

.comparison-section .comparison-table {
    max-height: 300px;
    overflow-y: auto;
}

/* Friend Info Group */
.friend-info-group {
    background: rgba(139, 69, 19, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid rgba(139, 69, 19, 0.4);
}

.friend-info-group .input-group {
    margin-bottom: 10px;
}

.friend-info-group .input-group:last-child {
    margin-bottom: 0;
}

/* Friend badge on character cards */
.friend-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(100, 100, 255, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.6);
    color: #aaa;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Activity badge on character cards */
.activity-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.activity-badge.activity-high {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.6);
    color: #4caf50;
}

.activity-badge.activity-medium {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
}

.activity-badge.activity-low {
    background: rgba(158, 158, 158, 0.3);
    border: 1px solid rgba(158, 158, 158, 0.6);
    color: #9e9e9e;
}

/* Statistics section in character modal */
.statistics-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.activity-score-label {
    color: var(--wow-light);
}

.activity-score-value {
    font-weight: bold;
    font-size: 1.3rem;
    padding: 5px 15px;
    border-radius: 8px;
}

.activity-score-value.activity-high {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.6);
    color: #4caf50;
}

.activity-score-value.activity-medium {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
}

.activity-score-value.activity-low {
    background: rgba(158, 158, 158, 0.3);
    border: 1px solid rgba(158, 158, 158, 0.6);
    color: #9e9e9e;
}

.stat-history-container h4 {
    color: var(--wow-gold);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.stat-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.stat-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
}

.stat-history-item .stat-type {
    color: var(--wow-light);
    text-transform: capitalize;
    min-width: 80px;
}

.stat-history-item .stat-change {
    font-weight: bold;
    min-width: 50px;
}

.stat-history-item .stat-change.positive {
    color: #4caf50;
}

.stat-history-item .stat-change.negative {
    color: #f44336;
}

.stat-history-item .stat-values {
    color: rgba(211, 188, 142, 0.8);
    flex: 1;
}

.stat-history-item .stat-date {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.8rem;
}

.small-button {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* MiniMapButton Container - WoW MiniMapButton Addon Style */
.minimap-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Hidden by default, shown when logged in */
}

.minimap-button-container.visible {
    display: block;
}

.minimap-button-container.expanded {
    z-index: 1002; /* Above quicknotes button when expanded */
}

/* Main Navigation Button */
.minimap-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a3020, #1a0e08);
    border: 3px solid var(--wow-gold);
    color: var(--wow-gold);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.minimap-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px var(--wow-gold), 0 4px 20px rgba(0, 0, 0, 0.6);
    border-color: #fff;
}

.minimap-main-btn.active {
    background: linear-gradient(145deg, #5a4030, #2a1510);
    border-color: #fff;
    transform: rotate(45deg);
}

.minimap-btn-icon {
    transition: transform 0.3s ease;
}

.minimap-main-btn.active .minimap-btn-icon {
    transform: rotate(-45deg);
}

/* Radial Menu */
.minimap-menu {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.minimap-menu-item {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3d2817, #1a0e08);
    border: 2px solid var(--wow-gold);
    color: var(--wow-gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0.3);
    bottom: 8px;
    right: 8px;
    pointer-events: none;
}

.minimap-button-container.expanded .minimap-menu-item {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Position menu items in a radial pattern - expanding upward and left */
.minimap-button-container.expanded .minimap-menu-item:nth-child(1) { /* Add Character */
    bottom: 80px;
    right: 8px;
    transition-delay: 0ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(2) { /* Goals */
    bottom: 130px;
    right: 8px;
    transition-delay: 25ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(3) { /* Tasks */
    bottom: 180px;
    right: 8px;
    transition-delay: 50ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(4) { /* Housing */
    bottom: 230px;
    right: 8px;
    transition-delay: 75ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(5) { /* Media */
    bottom: 280px;
    right: 8px;
    transition-delay: 100ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(6) { /* Compare */
    bottom: 330px;
    right: 8px;
    transition-delay: 125ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(7) { /* Warband */
    bottom: 380px;
    right: 8px;
    transition-delay: 150ms;
}

.minimap-button-container.expanded .minimap-menu-item:nth-child(8) { /* Refresh */
    bottom: 430px;
    right: 8px;
    transition-delay: 175ms;
}

.minimap-menu-item:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 15px var(--wow-gold), 0 3px 12px rgba(0, 0, 0, 0.5);
    border-color: #fff;
    z-index: 20;
}

/* Tooltip for menu items */
.minimap-menu-item::before {
    content: attr(title);
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 12, 8, 0.95);
    color: var(--wow-gold);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--wow-gold);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: "Cinzel", serif;
}

.minimap-menu-item:hover::before {
    opacity: 1;
}

/* Quicknotes Button - positioned to the left of MiniMapButton */
.minimap-addon-btn {
    position: fixed;
    bottom: 25px;
    right: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3d2817, #1a0e08);
    border: 2px solid var(--wow-gold);
    color: var(--wow-gold);
    font-size: 1.5rem;
    display: none; /* Hidden by default, shown when logged in */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1001;
}

.minimap-addon-btn.visible {
    display: flex;
}

.minimap-addon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--wow-gold), 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: #fff;
}

/* Quicknotes Modal */
.quicknotes-modal {
    max-width: 500px;
}

.quicknotes-body {
    padding: 20px;
}

.quicknotes-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.5);
}

.quicknotes-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.quicknotes-section h3 {
    color: var(--wow-gold);
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.quicknotes-textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    font-family: "Cinzel", serif;
}

.quicknotes-saved-indicator {
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--wow-green);
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.quicknotes-saved-indicator.show {
    opacity: 1;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.timer-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.timer-input {
    width: 70px !important;
    text-align: center;
    padding: 10px !important;
}

.timer-separator {
    color: var(--wow-gold);
    font-size: 1.5rem;
    font-weight: bold;
}

.timer-buttons {
    display: flex;
    gap: 10px;
}

.timer-btn {
    padding: 10px 20px;
}

.timer-display {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--wow-gold);
}

#timerCountdown {
    font-size: 3rem;
    font-weight: bold;
    color: var(--wow-gold);
    font-family: "Cinzel", serif;
}

#timerCountdown.warning {
    color: #ff6b6b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== Housing Styles ========== */

.housing-button {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #cd853f 100%);
    color: #fff;
}

.housing-button:hover {
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 50%, #daa520 100%);
    box-shadow: 0 0 15px rgba(205, 133, 63, 0.6);
}

.housing-modal {
    max-width: 800px;
}

.housing-header {
    background: linear-gradient(135deg, #3d2817 0%, #5a3d2b 100%);
    border-bottom: 2px solid var(--wow-gold);
}

.housing-body {
    padding: 0;
}

.housing-tabs {
    display: flex;
    border-bottom: 2px solid rgba(248, 183, 0, 0.3);
}

.housing-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--wow-light);
    cursor: pointer;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.housing-tab:hover {
    background: rgba(248, 183, 0, 0.1);
    color: var(--wow-gold);
}

.housing-tab.active {
    background: rgba(139, 69, 19, 0.3);
    color: var(--wow-gold);
    border-bottom: 2px solid var(--wow-gold);
    margin-bottom: -2px;
}

.housing-tab-content {
    display: none;
    padding: 20px;
}

.housing-tab-content.active {
    display: block;
}

.housing-info {
    margin-bottom: 15px;
    color: var(--wow-light);
    font-size: 0.9rem;
}

.decorations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.decoration-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(248, 183, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.decoration-item:hover {
    background: rgba(139, 69, 19, 0.4);
    border-color: var(--wow-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 183, 0, 0.2);
}

.decoration-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(248, 183, 0, 0.2);
}

.decoration-icon-img {
    max-width: 56px;
    max-height: 56px;
    border-radius: 4px;
}

.decoration-placeholder {
    font-size: 2rem;
}

.decoration-name {
    color: var(--wow-gold);
    font-size: 0.85rem;
    word-wrap: break-word;
}

.no-decorations,
.no-housing-achievements {
    text-align: center;
    color: var(--wow-light);
    padding: 30px;
    font-style: italic;
}

.api-info {
    text-align: center;
    color: #888;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Decoration Details Popup */
.decoration-details-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    background: rgba(33, 21, 16, 0.98);
    border: 2px solid var(--wow-gold);
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.decoration-details-content {
    padding: 0;
}

.decoration-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3d2817 0%, #5a3d2b 100%);
    border-bottom: 1px solid var(--wow-gold);
    border-radius: 6px 6px 0 0;
}

.decoration-details-header h3 {
    margin: 0;
    color: var(--wow-gold);
    font-size: 1.1rem;
}

.close-decoration-details {
    background: none;
    border: none;
    color: var(--wow-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
}

.close-decoration-details:hover {
    color: var(--wow-gold);
}

.decoration-details-body {
    padding: 20px;
}

.decoration-details-body p {
    margin: 10px 0;
    color: var(--wow-light);
    font-size: 0.9rem;
}

.decoration-description {
    font-style: italic;
    border-left: 3px solid var(--wow-gold);
    padding-left: 15px;
    margin-bottom: 15px !important;
}

.decoration-details-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(248, 183, 0, 0.3);
    text-align: center;
}

/* Housing Achievements List */
.housing-achievements-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.housing-achievement-group {
    margin-bottom: 20px;
}

.housing-achievement-category {
    color: var(--wow-gold);
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
}

.housing-achievement-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.housing-achievement-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(248, 183, 0, 0.2);
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.housing-achievement-item:hover {
    background: rgba(139, 69, 19, 0.3);
    border-color: var(--wow-gold);
}

.housing-achievement-item .achievement-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--wow-light);
    text-decoration: none;
}

.housing-achievement-item .achievement-link:hover {
    color: var(--wow-gold);
}

.housing-achievement-item .achievement-name {
    flex: 1;
}

.housing-achievement-item .achievement-points {
    color: var(--wow-gold);
    font-size: 0.85rem;
    margin-left: 10px;
}

/* Responsive adjustments for Housing */
@media (max-width: 600px) {
    .housing-tabs {
        flex-wrap: wrap;
    }
    
    .housing-tab {
        flex: 1 1 50%;
    }
    
    .decorations-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .decoration-icon {
        width: 48px;
        height: 48px;
    }
    
    .decoration-icon-img {
        max-width: 40px;
        max-height: 40px;
    }
}

/* Collapsible Achievement Categories */
.collapsible-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: all 0.2s;
}

.collapsible-header:hover {
    color: #fff;
}

.collapse-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.collapsible-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.category-count {
    font-size: 0.85rem;
    color: rgba(248, 183, 0, 0.7);
    font-weight: normal;
    margin-left: auto;
}

.housing-achievement-category {
    padding: 10px;
    margin: 0;
    border-radius: 6px 6px 0 0;
    background: rgba(0, 0, 0, 0.2);
}

.housing-achievement-category.collapsed {
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Decorations Info Box */
.decorations-info-box {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(248, 183, 0, 0.2);
}

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

.decorations-info-box .no-decorations {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.api-note {
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Fixtures and Rooms Lists */
.fixtures-list,
.rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.fixture-item,
.room-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(248, 183, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.fixture-item:hover,
.room-item:hover {
    background: rgba(139, 69, 19, 0.4);
    border-color: var(--wow-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 183, 0, 0.2);
}

.fixture-icon,
.room-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(248, 183, 0, 0.2);
}

.fixture-placeholder,
.room-placeholder {
    font-size: 2rem;
}

.fixture-name,
.room-name {
    color: var(--wow-gold);
    font-size: 0.85rem;
    word-wrap: break-word;
}

/* ========== AI Chat Styles ========== */
.ai-chat-modal {
    max-width: 1000px;
    width: 95%;
    height: 80vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
}

.ai-chat-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    padding: 0 !important;
}

.ai-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-sidebar {
    width: 220px;
    border-left: 1px solid rgba(248, 183, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-sidebar-header {
    padding: 12px;
    border-bottom: 1px solid rgba(248, 183, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-sidebar-header h4 {
    color: var(--wow-gold);
    margin: 0;
    font-size: 0.9rem;
}

.ai-chat-sidebar-header .wow-button.small {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.ai-chat-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.ai-chat-history-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid rgba(248, 183, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    position: relative;
}

.ai-chat-history-item .chat-item-content {
    flex: 1;
    min-width: 0;
}

.ai-chat-history-item .chat-delete-btn {
    display: none;
    background: transparent;
    border: none;
    color: rgba(248, 183, 0, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 8px;
    line-height: 1;
    transition: color 0.2s;
}

.ai-chat-history-item:hover .chat-delete-btn {
    display: block;
}

.ai-chat-history-item .chat-delete-btn:hover {
    color: #ff6b6b;
}

.ai-chat-history-item:hover {
    background: rgba(139, 69, 19, 0.5);
    border-color: rgba(248, 183, 0, 0.4);
}

.ai-chat-history-item.active {
    background: rgba(248, 183, 0, 0.2);
    border-color: var(--wow-gold);
}

.ai-chat-history-item .chat-title {
    color: var(--wow-light);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ai-chat-history-item .chat-date {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.7rem;
}

.ai-chat-history-empty {
    text-align: center;
    color: rgba(211, 188, 142, 0.5);
    padding: 20px 10px;
    font-size: 0.8rem;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
}

.ai-welcome-message {
    text-align: center;
    padding: 20px;
    color: var(--wow-light);
    opacity: 0.8;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.8));
    border: 1px solid var(--wow-gold);
    color: var(--wow-light);
}

.ai-message.assistant {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(33, 21, 16, 0.9), rgba(47, 24, 16, 0.9));
    border: 1px solid rgba(248, 183, 0, 0.5);
    color: var(--wow-light);
}

.ai-message.assistant .game-version-tag {
    display: inline-block;
    background: rgba(248, 183, 0, 0.2);
    border: 1px solid var(--wow-gold);
    color: var(--wow-gold);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.ai-message a {
    color: var(--wow-gold);
    text-decoration: underline;
}

.ai-message a:hover {
    color: #fff;
}

.ai-message ul, .ai-message ol,
.ai-message .ai-list {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.ai-message li {
    margin: 4px 0;
    line-height: 1.6;
}

.ai-message code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.ai-message .ai-header {
    color: var(--wow-gold);
    margin: 16px 0 8px 0;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(248, 183, 0, 0.3);
    padding-bottom: 4px;
}

.ai-message h3.ai-header {
    font-size: 1.15em;
}

.ai-message h4.ai-header {
    font-size: 1.05em;
}

.ai-message p {
    margin: 8px 0;
    line-height: 1.6;
}

.ai-no-key-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(248, 183, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.ai-suggestion-category {
    width: 100%;
    margin-bottom: 4px;
}

.ai-suggestion-category h4 {
    color: var(--wow-gold);
    font-size: 0.85rem;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-suggestion-btn {
    background: rgba(139, 69, 19, 0.5);
    border: 1px solid rgba(248, 183, 0, 0.4);
    color: var(--wow-light);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-suggestion-btn:hover {
    background: rgba(248, 183, 0, 0.3);
    border-color: var(--wow-gold);
}

.ai-chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    align-items: flex-end;
}

.ai-chat-input {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

.ai-chat-send {
    padding: 10px 20px;
    height: 44px;
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(47, 24, 16, 0.8);
    border: 1px solid rgba(248, 183, 0, 0.3);
    border-radius: 12px;
    align-self: flex-start;
    max-width: 85%;
}

.ai-typing-dots {
    display: flex;
    gap: 4px;
}

.ai-typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--wow-gold);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* AI Assistant Button */
.ai-assistant-btn {
    background: linear-gradient(135deg, #6b46c1, #805ad5);
    border: 1px solid #9f7aea;
}

.ai-assistant-btn:hover {
    background: linear-gradient(135deg, #805ad5, #9f7aea);
    box-shadow: 0 0 10px rgba(159, 122, 234, 0.5);
}

.ai-chat-icon {
    margin-right: 8px;
}

/* AI Settings toggle visibility */
#openaiSettings, #anthropicSettings, #googleSettings {
    transition: all 0.3s ease;
}

/* Responsive adjustments for AI chat */
@media (max-width: 800px) {
    .ai-chat-modal {
        max-width: 95%;
    }
    
    .ai-chat-sidebar {
        width: 180px;
    }
}

@media (max-width: 600px) {
    .ai-chat-modal {
        height: 90vh;
        max-height: none;
    }
    
    .ai-chat-body {
        flex-direction: column-reverse;
    }
    
    .ai-chat-sidebar {
        width: 100%;
        height: auto;
        max-height: 120px;
        border-left: none;
        border-bottom: 1px solid rgba(248, 183, 0, 0.3);
    }
    
    .ai-chat-history-list {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding: 8px;
    }
    
    .ai-chat-history-item {
        min-width: 140px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .ai-message {
        max-width: 95%;
    }
    
    .ai-suggestions {
        max-height: 150px;
    }
    
    .ai-suggestion-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* AI Settings Note */
.ai-settings-note {
    font-size: 0.8rem;
    color: rgba(211, 188, 142, 0.7);
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(248, 183, 0, 0.1);
    border-left: 3px solid var(--wow-gold);
    border-radius: 4px;
}

/* WoW News Section */
.news-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(47, 24, 16, 0.5);
    border: 1px solid var(--wow-gold);
    border-radius: 8px;
}

.news-section h2 {
    margin-bottom: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.news-item {
    background: rgba(33, 21, 16, 0.8);
    border: 1px solid rgba(248, 183, 0, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.news-item:hover {
    border-color: var(--wow-gold);
    box-shadow: 0 0 8px rgba(248, 183, 0, 0.3);
}

.news-item.news-today {
    border-left: 3px solid var(--wow-gold);
    background: rgba(248, 183, 0, 0.05);
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.news-title {
    color: var(--wow-gold);
    font-size: 1rem;
    font-weight: bold;
    flex: 1;
    margin: 0;
}

.news-source {
    font-size: 0.75rem;
    color: var(--wow-light);
    background: rgba(248, 183, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-description {
    color: rgba(211, 188, 142, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(211, 188, 142, 0.6);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-link {
    color: var(--wow-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-link:hover {
    text-decoration: underline;
}

/* News Modal */
.news-modal {
    max-width: 800px;
    width: 95%;
}

.news-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.news-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    background: var(--wow-dark);
    padding: 10px 0;
    z-index: 10;
}

.news-search-container .wow-input {
    flex: 1;
}

.news-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-modal-list .news-item {
    cursor: default;
}

.news-modal-list .news-description {
    -webkit-line-clamp: 4;
}

/* Responsive News */
@media (max-width: 768px) {
    .news-item-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-source {
        align-self: flex-start;
    }
    
    .news-search-container {
        flex-direction: column;
    }
}

/* ========== Media Library Styles ========== */
.media-admin-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.media-categories-list,
.media-items-list {
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 4px;
    padding: 15px;
}

.media-categories-list h3,
.media-items-list h3 {
    color: var(--wow-gold);
    margin-bottom: 15px;
    font-size: 1rem;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-card {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--wow-gold);
    background-color: rgba(0, 0, 0, 0.5);
}

.category-card.active {
    border-color: var(--wow-gold);
    background-color: rgba(212, 175, 55, 0.2);
}

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

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

.category-name {
    color: var(--wow-light);
    font-weight: bold;
}

.category-count {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.8rem;
}

.category-actions {
    display: flex;
    gap: 5px;
}

.media-filter {
    margin-bottom: 15px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.media-card {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.media-card:hover {
    border-color: var(--wow-gold);
    transform: translateY(-2px);
}

.media-thumbnail {
    width: 100%;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--wow-gold);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.media-card-body {
    padding: 12px;
}

.media-title {
    color: var(--wow-light);
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-description {
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-footer {
    padding: 10px 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-duration {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.8rem;
}

.media-actions {
    display: flex;
    gap: 5px;
}

/* Media Library Modal (User) */
.media-library-modal {
    max-width: 900px;
    width: 95%;
}

.media-library-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.media-search {
    flex: 1;
}

.media-category-filter {
    min-width: 200px;
}

.media-library-content {
    max-height: 500px;
    overflow-y: auto;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.media-library-item {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-library-item:hover {
    border-color: var(--wow-gold);
    background-color: rgba(0, 0, 0, 0.5);
}

.media-library-item .media-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.media-library-item .media-title {
    text-align: center;
    font-size: 0.9rem;
}

.media-library-item .media-category-tag {
    text-align: center;
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Media Player Modal */
.media-player-modal {
    max-width: 800px;
    width: 95%;
}

.media-player-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 15px;
}

.media-player-content audio {
    width: 100%;
    margin: 20px;
}

.media-player-content video {
    max-width: 100%;
    max-height: 400px;
}

.media-player-content iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
}

.media-player-info {
    color: rgba(211, 188, 142, 0.8);
    font-size: 0.9rem;
}

/* Upload Progress */
.upload-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--wow-gold);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 5px;
    color: rgba(211, 188, 142, 0.7);
    font-size: 0.85rem;
}

.input-hint {
    color: rgba(211, 188, 142, 0.6);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.media-button {
    background: linear-gradient(180deg, #6b21a8 0%, #4c1d95 100%);
}

.media-button:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
}

/* Empty state */
.media-empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(211, 188, 142, 0.6);
}

.media-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Media date and play overlay */
.media-date {
    color: rgba(211, 188, 142, 0.5);
    font-size: 0.75rem;
    margin-top: 5px;
}

.media-upload-date {
    color: rgba(211, 188, 142, 0.5);
    font-size: 0.7rem;
    margin-top: 5px;
}

.media-thumbnail {
    position: relative;
}

.media-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--wow-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card:hover .media-play-overlay {
    opacity: 1;
}

/* Modal header with actions */
.modal-header-actions {
    display: flex;
    gap: 10px;
}

.minimize-modal {
    background: none;
    border: none;
    color: var(--wow-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

.minimize-modal:hover {
    color: var(--wow-light);
}

/* Mini Media Player */
.mini-media-player {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: var(--wow-brown);
    border: 1px solid var(--wow-gold);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mini-media-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mini-media-icon {
    font-size: 1.5rem;
}

.mini-media-title {
    color: var(--wow-light);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-media-controls {
    display: flex;
    gap: 5px;
}

.mini-media-controls button {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--wow-gold);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.mini-media-controls button:hover {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--wow-gold);
}

/* Date Filter */
.media-date-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.date-filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-filter-group label {
    color: var(--wow-light);
    font-size: 0.85rem;
}

.date-filter-group input[type="date"] {
    max-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-admin-container {
        grid-template-columns: 1fr;
    }
    
    .media-library-header {
        flex-direction: column;
    }
    
    .media-category-filter {
        min-width: auto;
    }
    
    .media-player-content iframe {
        height: 250px;
    }
    
    .media-date-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mini-media-player {
        right: 20px;
        bottom: 70px;
    }
}

/* ========== User Profiles (Specializations, UI Settings, Talent Strings) ========== */

.profiles-section {
    margin-top: 20px;
}

.profiles-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--wow-gold);
    padding-bottom: 10px;
}

.profiles-tab {
    padding: 8px 16px;
    background: linear-gradient(180deg, rgba(40, 35, 25, 0.9) 0%, rgba(25, 22, 15, 0.95) 100%);
    border: 1px solid var(--wow-gold);
    color: var(--wow-gold);
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.profiles-tab:hover {
    background: linear-gradient(180deg, rgba(60, 50, 35, 0.9) 0%, rgba(35, 30, 20, 0.95) 100%);
}

.profiles-tab.active {
    background: linear-gradient(180deg, rgba(80, 60, 30, 0.9) 0%, rgba(50, 40, 20, 0.95) 100%);
    border-bottom-color: transparent;
}

.profiles-content {
    min-height: 200px;
}

.profiles-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.profiles-list {
    display: grid;
    gap: 15px;
}

.empty-profiles {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.profile-card {
    background: linear-gradient(180deg, rgba(40, 35, 25, 0.9) 0%, rgba(25, 22, 15, 0.95) 100%);
    border: 1px solid var(--wow-gold);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: #ffd100;
    box-shadow: 0 0 10px rgba(255, 182, 0, 0.3);
}

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

.profile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

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

.profile-scope {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
}

.profile-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 10px 0;
    font-style: italic;
    line-height: 1.4;
}

.profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 10px;
    align-items: center;
}

.profile-actions .small-button {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.profile-actions .icon-button {
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: auto;
}

.profile-actions a.small-button,
.profile-actions a.icon-button {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    text-decoration: none;
}

.wowhead-link {
    background: linear-gradient(180deg, #2d5a27 0%, #1d3a17 100%) !important;
    text-decoration: none;
}

.wowhead-link:hover {
    background: linear-gradient(180deg, #3d7a37 0%, #2d5a27 100%) !important;
}

/* Profile Modal */
.profile-modal {
    max-width: 600px;
}

.profile-import-string {
    min-height: 100px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.profile-string-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.profile-hint {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.profile-notes {
    min-height: 80px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .danger {
    background: linear-gradient(180deg, #6b2222 0%, #4a1818 100%);
}

.modal-actions .danger:hover {
    background: linear-gradient(180deg, #8b3232 0%, #5a2020 100%);
}

/* Responsive adjustments for profiles */
@media (max-width: 600px) {
    .profiles-tabs {
        justify-content: center;
    }
    
    .profiles-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-actions {
        justify-content: flex-start;
    }
}

/* ========== Talents & Profiles in Character Modal ========== */

.current-spec-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.current-spec-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--wow-gold);
    margin-bottom: 10px;
}

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

.talents-list, .pvp-talents-list {
    margin-top: 10px;
}

.talents-list strong, .pvp-talents-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.talents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.talent-item {
    display: inline-block;
    background: linear-gradient(180deg, rgba(40, 35, 25, 0.9) 0%, rgba(25, 22, 15, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.talent-item:hover {
    border-color: var(--wow-gold);
    color: var(--wow-gold);
}

.talent-item.pvp-talent {
    border-color: #8b0000;
}

.talent-item.pvp-talent:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.more-talents {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
}

.character-profiles-section h4 {
    margin-bottom: 10px;
    color: var(--wow-gold);
}

.profile-item-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 8px;
}

.profile-item-mini .profile-icon {
    font-size: 1.1rem;
}

.profile-item-mini .profile-name {
    flex: 1;
    font-weight: 500;
}

.profile-type-badge {
    background: rgba(255, 182, 0, 0.2);
    color: var(--wow-gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.profile-mini-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.profile-mini-actions .icon-button {
    padding: 4px 8px;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-mini-actions a.icon-button {
    text-decoration: none;
}

.muted-text {
    color: var(--text-secondary);
    font-style: italic;
}

.global-profiles-hint {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
}

.global-profiles-hint strong {
    display: block;
    margin-bottom: 6px;
}

.profile-badge {
    display: inline-block;
    background: rgba(255, 182, 0, 0.15);
    border: 1px solid var(--wow-gold);
    color: var(--wow-gold);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.more-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
}


/* Mobile responsive styles for MiniMapButton */
@media (max-width: 768px) {
    .minimap-button-container {
        bottom: 15px;
        right: 15px;
    }
    
    .minimap-main-btn {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    
    .minimap-menu-item {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .minimap-addon-btn {
        bottom: 19px;
        right: 80px;
        width: 46px;
        height: 46px;
    }
    
    /* Adjust menu positions for mobile - vertical stack upward with more spacing */
    .minimap-button-container.expanded .minimap-menu-item:nth-child(1) {
        bottom: 70px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(2) {
        bottom: 115px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(3) {
        bottom: 160px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(4) {
        bottom: 205px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(5) {
        bottom: 250px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(6) {
        bottom: 295px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(7) {
        bottom: 340px;
        right: 7px;
    }
    
    .minimap-button-container.expanded .minimap-menu-item:nth-child(8) {
        bottom: 385px;
        right: 7px;
    }
    
    .minimap-menu-item::before {
        display: none; /* Hide tooltips on mobile */
    }
}

/* Addon API Settings */
.addon-api-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.addon-api-status {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.addon-api-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.addon-api-status-row:last-child {
    margin-bottom: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-badge.status-active {
    background: rgba(0, 200, 0, 0.3);
    color: #4eff4e;
    border: 1px solid #4eff4e;
}

.status-badge.status-inactive {
    background: rgba(150, 150, 150, 0.3);
    color: #999;
    border: 1px solid #666;
}

.addon-api-actions {
    margin-bottom: 15px;
}

.addon-api-token-display {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(248, 183, 0, 0.1);
    border: 1px solid var(--wow-gold);
    border-radius: 6px;
}

.addon-api-token-display label {
    display: block;
    margin-bottom: 8px;
    color: var(--wow-gold);
    font-weight: bold;
}

.token-copy-container {
    display: flex;
    gap: 10px;
}

.token-copy-container input {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
}

.addon-api-warning {
    margin-top: 10px;
    color: #ff9900;
    font-size: 0.85rem;
}

.addon-api-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid #666;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #999;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(0, 150, 0, 0.5);
    border-color: #4eff4e;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: #4eff4e;
}

.addon-api-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.addon-api-buttons .wow-button.danger {
    background: rgba(200, 0, 0, 0.3);
    border-color: #ff6666;
    color: #ff6666;
}

.addon-api-buttons .wow-button.danger:hover {
    background: rgba(200, 0, 0, 0.5);
}

.addon-api-help {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(248, 183, 0, 0.2);
}

.addon-api-help a {
    color: var(--wow-gold);
    text-decoration: underline;
}

.addon-api-help a:hover {
    color: #fff;
}

/* Admin Documentation Section */
.doc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.doc-tab-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #666;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.doc-tab-btn:hover {
    background: rgba(248, 183, 0, 0.2);
    border-color: var(--wow-gold);
}

.doc-tab-btn.active {
    background: var(--wow-gold);
    color: #000;
    border-color: var(--wow-gold);
    font-weight: bold;
}

.doc-content {
    display: none;
}

.doc-content.active {
    display: block;
}

.doc-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(248, 183, 0, 0.2);
}

.doc-section h3 {
    color: var(--wow-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.doc-section p {
    color: rgba(211, 188, 142, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
}

.doc-steps {
    margin: 15px 0;
    padding-left: 25px;
}

.doc-steps li {
    color: rgba(211, 188, 142, 0.9);
    margin-bottom: 10px;
    line-height: 1.5;
}

.doc-steps li strong {
    color: var(--wow-gold);
}

.doc-tip {
    background: rgba(0, 100, 0, 0.2);
    border: 1px solid #4eff4e;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 15px;
}

.doc-tip strong {
    color: #4eff4e;
}

.doc-tip span {
    color: rgba(211, 188, 142, 0.9);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(248, 183, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.feature-card h4 {
    color: var(--wow-gold);
    margin-bottom: 8px;
    font-size: 1rem;
}

.feature-card p {
    color: rgba(211, 188, 142, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.doc-table th,
.doc-table td {
    text-align: left;
    padding: 10px 15px;
    border: 1px solid rgba(248, 183, 0, 0.3);
}

.doc-table th {
    background: rgba(248, 183, 0, 0.2);
    color: var(--wow-gold);
    font-weight: bold;
}

.doc-table td {
    color: rgba(211, 188, 142, 0.9);
}

.doc-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.2);
}

.endpoint-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(248, 183, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.endpoint-header code {
    color: #fff;
    font-family: monospace;
    font-size: 0.95rem;
}

.method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.method.get {
    background: #28a745;
    color: #fff;
}

.method.post {
    background: #ffc107;
    color: #000;
}

.method.put {
    background: #17a2b8;
    color: #fff;
}

.method.delete {
    background: #dc3545;
    color: #fff;
}

.code-block {
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 10px 0;
    overflow-x: auto;
}

.code-block code,
.code-block pre {
    color: #4eff4e;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.doc-link {
    display: inline-block;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-table th,
    .doc-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Setup hints for missing integrations (Blizzard API, AI key) */
.status-detail {
    font-size: 0.9em;
    opacity: 0.85;
    margin: 6px 0;
}

.integration-notice {
    border: 1px solid var(--wow-gold);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: rgba(248, 183, 0, 0.1);
}

.integration-notice-text {
    margin: 0 0 8px 0;
}

.integration-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
