/* Custom Font - AvantGarde */
@font-face {
    font-family: "AvantGarde";
    src: url("https://db.onlinewebfonts.com/t/4ca347f45e1f36fd455e0dc8048bf576.eot");
    src: url("https://db.onlinewebfonts.com/t/4ca347f45e1f36fd455e0dc8048bf576.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/4ca347f45e1f36fd455e0dc8048bf576.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/4ca347f45e1f36fd455e0dc8048bf576.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/4ca347f45e1f36fd455e0dc8048bf576.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/4ca347f45e1f36fd455e0dc8048bf576.svg#AvantGarde") format("svg");
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "AvantGarde", 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1419 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e0d5c7;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Top Navigation Bar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.98) 0%, rgba(15, 20, 30, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    padding: 0 30px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav-links {
    display: flex;
    gap: 15px;
}

.top-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 8px;
    color: #c9b896;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-size: 0.95em;
}

.top-nav-link:hover {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(40, 45, 55, 0.9) 0%, rgba(35, 40, 50, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.top-nav-link .nav-icon {
    font-size: 1.2em;
}

/* Server Status in Top Bar */
.top-server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(25, 30, 40, 0.9) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.top-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.top-sound-control {
    display: flex;
    align-items: center;
}

.top-sound-btn {
    background: rgba(30, 35, 45, 0.8);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    color: #c9b896;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.top-sound-btn:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.top-sound-btn:active {
    transform: scale(0.95);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.98) 0%, rgba(15, 20, 30, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.header-sidebar {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.4);
}

.header-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.header-text {
    text-align: left;
}

.header-sidebar h1 {
    font-size: 2em;
    margin-bottom: 5px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-sidebar h2 {
    font-size: 1.6em;
    margin-bottom: 5px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.header-sidebar p {
    font-size: 0.9em;
    opacity: 0.85;
    color: #c9b896;
    font-style: italic;
    margin: 0;
}

/* Server Status Indicator */
.server-status-card {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(25, 30, 40, 0.9) 100%);
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid rgba(139, 69, 19, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.sound-control {
    display: flex;
    align-items: center;
}

.sound-btn {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    color: #c9b896;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sound-btn:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.sound-btn:active {
    transform: scale(0.95);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.connected {
    background: #4CAF50;
    color: #4CAF50;
}

.status-dot.connecting {
    background: #FFA726;
    color: #FFA726;
}

.status-dot.disconnected {
    background: #f44336;
    color: #f44336;
    animation: pulse-error 1s infinite;
}

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

@keyframes pulse-error {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

/* Navigation links in sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid rgba(139, 69, 19, 0.4);
    flex-shrink: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 8px;
    color: #c9b896;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-nav-link:hover {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(40, 45, 55, 0.9) 0%, rgba(35, 40, 50, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transform: translateX(5px);
}

.sidebar-nav-link .nav-icon {
    font-size: 1.3em;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(10, 14, 20, 0.5);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.6);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.8);
}

.stat-card-sidebar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.4);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card-sidebar:hover {
    border-color: #ffd700;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.stat-card-sidebar.highlight-leaders {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(101, 50, 14, 0.3) 100%);
    border-color: rgba(255, 215, 0, 0.6);
}

.stat-card-sidebar.highlight-leaders:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.5) 0%, rgba(101, 50, 14, 0.5) 100%);
    border-color: #ffd700;
}

.stat-card-sidebar.highlight-players {
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.3) 0%, rgba(30, 67, 101, 0.3) 100%);
    border-color: rgba(74, 144, 199, 0.6);
}

.stat-card-sidebar.highlight-players:hover {
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.5) 0%, rgba(30, 67, 101, 0.5) 100%);
    border-color: #4a90c7;
}

.stat-icon {
    font-size: 2.5em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .role-icon {
    width: 42px;
    height: 42px;
    margin: 0;
}

.stat-info {
    flex: 1;
}

.stat-info .number {
    font-size: 2em;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-info .label {
    font-size: 0.85em;
    color: #c9b896;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    margin-left: 280px;
    margin-right: 280px;  /* Место для правого сайдбара */
    margin-top: 70px;  /* Место для верхнего навбара */
    max-width: 1200px;
    width: calc(100% - 560px);  /* Вычитаем оба сайдбара */
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* RIGHT SIDEBAR */
.sidebar-right {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.98) 0%, rgba(15, 20, 30, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-left: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.sidebar-right.hidden {
    display: none;
}

.queue-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.4);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-card:hover {
    border-color: #ffd700;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.detail-card.timer-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(30, 35, 45, 0.8) 100%);
    border-color: rgba(76, 175, 80, 0.5);
}

.detail-icon {
    font-size: 2em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon .role-icon {
    width: 40px;
    height: 40px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.75em;
    color: #c9b896;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffd700;
    line-height: 1.3;
}

.detail-value.timer-value {
    font-size: 1.8em;
    color: #4CAF50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    font-variant-numeric: tabular-nums;
}

.header {
    text-align: center;
    color: #ffd700;
    margin-bottom: 40px;
    padding: 30px 0;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header p {
    font-size: 1.2em;
    opacity: 0.85;
    color: #c9b896;
    font-style: italic;
}

/* Hide old stats section */
.stats {
    display: none;
}

.stat-card {
    display: none;
}

.card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.95) 0%, rgba(15, 20, 30, 0.95) 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 0 0 1px rgba(139, 69, 19, 0.3);
    border: 2px solid rgba(139, 69, 19, 0.4);
    margin-bottom: 20px;
}

.card h2 {
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Quick Start Guide */
.quick-start-guide {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(101, 50, 14, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 215, 0, 0.15);
}

.quick-start-guide h3 {
    font-size: 1.5em;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 0;
}

.quick-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quick-step:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.quick-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #8b6914 0%, #6b5310 100%);
    border: 2px solid #ffd700;
    border-radius: 50%;
    color: #ffd700;
    font-size: 1.2em;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.quick-step-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.4;
    color: #c9b896;
}

.quick-step-text strong {
    display: block;
    color: #ffd700;
    margin-bottom: 3px;
    font-size: 1.05em;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.85;
    color: #c9b896;
    font-style: italic;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(15, 20, 30, 0.8);
    color: #e0d5c7;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.input-group textarea::placeholder {
    color: rgba(201, 184, 150, 0.5);
}

.main-content {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.95) 0%, rgba(15, 20, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 0 0 1px rgba(139, 69, 19, 0.3);
    border: 2px solid rgba(139, 69, 19, 0.4);
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(25, 30, 40, 0.6) 0%, rgba(20, 25, 35, 0.6) 100%);
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    letter-spacing: 1px;
}

.instruction {
    margin-bottom: 15px;
    opacity: 0.9;
    color: #c9b896;
}

.link-input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(15, 20, 30, 0.8);
    color: #e0d5c7;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.link-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.link-input::placeholder {
    color: rgba(201, 184, 150, 0.5);
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(139, 69, 19, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "AvantGarde", 'Palatino Linotype', serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 6px;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    filter: brightness(1.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #8b6914 0%, #6b5310 100%);
    color: #ffd700;
    border-color: #ffd700;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(20, 25, 35, 0.9) 100%);
    color: #c9b896;
    border-color: rgba(139, 69, 19, 0.6);
}

.btn-host {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: #ffd700;
    border-color: #ffd700;
}

.btn-join {
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4365 100%);
    color: #87ceeb;
    border-color: #4a90c7;
}

.btn-success {
    background: linear-gradient(135deg, #2d5016 0%, #1e3510 100%);
    color: #90ee90;
    border-color: #4a7c2f;
}

.btn-danger {
    background: linear-gradient(135deg, #8b1a1a 0%, #651414 100%);
    color: #ff6b6b;
    border-color: #aa3939;
}

.character-card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.9) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.character-card p {
    margin: 8px 0;
    font-size: 1.1em;
    color: #c9b896;
}

.character-card strong {
    color: #ffd700;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-select, .form-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(15, 20, 30, 0.8);
    color: #e0d5c7;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-select option {
    background: #1a1f2e;
    color: #e0d5c7;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    width: 100px;
}

.queue-status {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.9) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.match-info {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.9) 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.match-player {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.match-player.tank {
    border-left-color: #4a90c7;
    background: linear-gradient(135deg, rgba(30, 45, 60, 0.8) 0%, rgba(25, 35, 50, 0.8) 100%);
}

.match-player.healer {
    border-left-color: #4a7c2f;
    background: linear-gradient(135deg, rgba(30, 45, 30, 0.8) 0%, rgba(25, 35, 25, 0.8) 100%);
}

.match-player.dps {
    border-left-color: #aa3939;
    background: linear-gradient(135deg, rgba(45, 30, 30, 0.8) 0%, rgba(35, 25, 25, 0.8) 100%);
}

.commands-list {
    background: rgba(10, 14, 20, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(139, 69, 19, 0.4);
}

.command-item {
    background: rgba(20, 25, 35, 0.8);
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: #c9b896;
}

.command-item:hover {
    background: rgba(30, 35, 45, 0.9);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

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

.stat-item {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.9) 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.stat-label {
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    color: #c9b896;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    opacity: 0.7;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9em;
}

.footer-links a {
    color: #4facfe;
    text-decoration: none;
    margin: 0 10px;
}

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

.version {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 5px;
}

.help-box {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.6) 0%, rgba(25, 30, 40, 0.6) 100%);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid #4a90c7;
    border: 2px solid rgba(74, 144, 199, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.help-box ol {
    margin: 10px 0 0 20px;
    text-align: left;
    color: #c9b896;
}

.help-box li {
    margin: 5px 0;
}

.help-box code {
    background: rgba(10, 14, 20, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ffd700;
    border: 1px solid rgba(139, 69, 19, 0.4);
}

.key-info {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.9) 100%);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-size: 1.2em;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.command-hint {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
    color: #c9b896;
}

.info-section {
    margin-top: 40px;
}

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

.info-card {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9) 0%, rgba(15, 20, 30, 0.9) 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.info-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.info-card p {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.9;
    color: #c9b896;
}

/* Role icons - PNG images without background circles */
.role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    flex-shrink: 0;
}

.role-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Larger icons for sidebar stats */
.stat-icon .role-icon {
    width: 42px;
    height: 42px;
    margin: 0;
}

/* Medium icons for detail cards in right sidebar */
.detail-icon .role-icon {
    width: 36px;
    height: 36px;
}

/* Remove all role-specific background styles - just use PNG images */
.role-icon.TANK,
.role-icon.tank,
.role-icon.HEALER,
.role-icon.healer,
.role-icon.DAMAGER,
.role-icon.DPS,
.role-icon.dps,
.role-icon.damager {
    background: none;
    border: none;
}

/* Class colors */
.class-warrior { color: #C79C6E; }
.class-paladin { color: #F58CBA; }
.class-hunter { color: #ABD473; }
.class-rogue { color: #FFF569; }
.class-priest { color: #FFFFFF; }
.class-deathknight { color: #C41F3B; }
.class-shaman { color: #0070DE; }
.class-mage { color: #40C7EB; }
.class-warlock { color: #8787ED; }
.class-monk { color: #00FF96; }
.class-druid { color: #FF7D0A; }
.class-demonhunter { color: #A330C9; }
.class-evoker { color: #33937F; }

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .top-navbar {
        left: 0;
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .top-navbar-left,
    .top-navbar-right {
        width: 100%;
    }
    
    .top-nav-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .top-nav-link {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.85em;
        justify-content: center;
    }
    
    .top-server-status {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid rgba(139, 69, 19, 0.5);
        padding: 20px;
        gap: 15px;
    }
    
    .header-sidebar h1 {
        font-size: 1.5em;
    }
    
    .stats-sidebar {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .stat-card-sidebar {
        flex: 1;
        min-width: 140px;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .stat-icon {
        font-size: 1.8em;
    }
    
    .stat-info .number {
        font-size: 1.5em;
    }
    
    .container {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        padding: 20px 10px;
    }
    
    .faq-container,
    .howto-container {
        margin-left: 0;
        margin-top: 0;
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Dungeon checkboxes */
.dungeon-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.dungeon-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: #c9b896;
}

.dungeon-checkboxes label:hover {
    background: linear-gradient(135deg, rgba(40, 45, 55, 0.9) 0%, rgba(35, 40, 50, 0.9) 100%);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.dungeon-checkboxes label:has(#anyDungeon) {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.4) 0%, rgba(101, 50, 14, 0.4) 100%);
    font-weight: 600;
    border-color: #ffd700;
    color: #ffd700;
}

.dungeon-checkboxes label:has(#anyDungeon):hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6) 0%, rgba(101, 50, 14, 0.6) 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.dungeon-checkboxes input[type="checkbox"] {
    margin: 0;
}

/* Dungeon Selection Row (for character display) */
.dungeon-selection-header {
    margin-bottom: 10px;
    text-align: left;
    display: flex;
    gap: 10px;
}

.dungeon-selection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 4px;
    gap: 10px;
}

.dungeon-selection-row .dungeon-checkbox {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
}

.dungeon-selection-row .dungeon-checkbox-input {
    margin: 0;
}

.dungeon-selection-row .dungeon-key-input {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 70px;
}

.dungeon-selection-row .dungeon-key-input input {
    width: 50px;
    padding: 4px;
    text-align: center;
    border: 1px solid rgba(139, 69, 19, 0.5);
    border-radius: 4px;
    background: rgba(15, 20, 30, 0.8);
    color: #e0d5c7;
    font-size: 0.9em;
}

.dungeon-selection-row .dungeon-key-input input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Accept Status Styles */
.accept-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.accept-status.accepted {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.8) 0%, rgba(30, 53, 16, 0.8) 100%);
    color: #90ee90;
    border: 1px solid #4a7c2f;
    box-shadow: 0 0 10px rgba(74, 124, 47, 0.4);
}

.accept-status.pending {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.6) 0%, rgba(101, 50, 14, 0.6) 100%);
    color: #ffa500;
    border: 1px solid #ff8c00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }
}

.pending-accepts {
    border: 2px solid #ff8c00;
    animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
    0%, 100% {
        border-color: #ff8c00;
        box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
    }
    50% {
        border-color: #ffa500;
        box-shadow: 0 0 25px rgba(255, 165, 0, 0.5);
    }
}

.accept-progress {
    font-size: 1.2em;
    margin: 10px 0;
    color: #ffd700;
}

.accept-timer {
    font-size: 1.1em;
    margin: 10px 0;
    color: #c9b896;
}

#accept-countdown {
    font-size: 1.3em;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.you-accepted {
    color: #90ee90;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.you-pending {
    color: #ffa500;
    font-weight: 600;
    margin-top: 10px;
    animation: pulse 2s infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Additional HTML-specific styles */
.hidden {
    display: none !important;
}

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

.character-header h2 {
    margin: 0;
}

.character-header .queue-timer {
    font-size: 2.5rem;
    font-weight: 600;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    font-variant-numeric: tabular-nums;
    min-width: 120px;
    text-align: right;
}

.char-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.char-info-item {
    padding: 10px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.6) 0%, rgba(25, 30, 40, 0.6) 100%);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.char-info-item .label {
    font-size: 0.85rem;
    color: #c9b896;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.char-info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd700;
}

.char-info-item .value .role-icon {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    vertical-align: middle;
}

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

.actions button {
    flex: 1;
}

.queue-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.queue-content {
    flex: 1;
    text-align: left;
}

.queue-mode {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.queue-dungeon {
    font-size: 1.2rem;
    color: #e0d5c7;
    margin-bottom: 5px;
}

.queue-status {
    color: #c9b896;
}

.queue-timer {
    font-size: 2.5rem;
    font-weight: 600;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    font-variant-numeric: tabular-nums;
    min-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

/* Queue Details */
.queue-details {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.6) 0%, rgba(25, 30, 40, 0.6) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.queue-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.85em;
    color: #c9b896;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.1em;
    color: #ffd700;
    font-weight: 600;
}

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

.player-name {
    min-width: 180px;
    font-weight: 600;
    color: #e0d5c7;
}

.player-class {
    min-width: 150px;
    color: #87ceeb;
    font-weight: 600;
}

.player-ilvl {
    color: #c9b896;
    font-size: 0.9em;
}

.player-rio {
    color: #c9b896;
    font-size: 0.9em;
}

.match-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.match-actions button {
    flex: 1;
}

/* Best Runs Display */
.best-runs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.best-run-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    align-items: center;
}

.run-dungeon {
    font-weight: 500;
    color: #e0d5c7;
}

.run-level {
    text-align: center;
    color: #87ceeb;
    font-weight: 500;
}

.run-max {
    text-align: right;
    color: #c9b896;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.98) 0%, rgba(15, 20, 30, 0.98) 100%);
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.5);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 1.5rem;
}

.modal-section {
    margin-bottom: 15px;
}

.modal-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffd700;
    font-size: 0.95rem;
}

.key-level-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.key-level-selector input {
    width: 100px;
    padding: 10px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(15, 20, 30, 0.8);
    color: #e0d5c7;
    font-size: 1rem;
}

.key-level-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.key-level-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.key-level-input-group label {
    font-size: 0.8rem;
    color: #c9b896;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-level-input-group input {
    width: 70px;
    padding: 8px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(15, 20, 30, 0.8);
    color: #e0d5c7;
    font-size: 0.95rem;
    text-align: center;
}

.key-level-input-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.range-separator {
    font-size: 1.3rem;
    color: #c9b896;
    margin-top: 16px;
}

.key-hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #c9b896;
}

.dungeon-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dungeon-quick-actions button {
    padding: 8px 15px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    color: #c9b896;
    border: 1px solid rgba(139, 69, 19, 0.4);
}

.dungeon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(10, 14, 20, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.dungeon-list-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: none;
}

.dungeon-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: #c9b896;
    font-size: 0.9rem;
}

.dungeon-checkbox-item label:hover {
    background: linear-gradient(135deg, rgba(40, 45, 55, 0.9) 0%, rgba(35, 40, 50, 0.9) 100%);
    border-color: #ffd700;
}

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

.dungeon-name {
    flex: 1;
    font-weight: 500;
    color: #e0d5c7;
}

.dungeon-availability {
    font-size: 0.85rem;
    font-weight: 600;
}

.dungeon-availability.available {
    color: #90ee90;
}

.dungeon-availability.unavailable {
    color: #ff6b6b;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-actions button {
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #8b6914 0%, #6b5310 100%);
    color: #ffd700;
    border-color: #ffd700;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(20, 25, 35, 0.9) 100%);
    color: #c9b896;
    border-color: rgba(139, 69, 19, 0.6);
}

/* Match Accepted Styles */
.match-accepted-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-box {
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.6) 0%, rgba(25, 30, 40, 0.6) 100%);
    border: 2px solid rgba(139, 69, 19, 0.4);
}

.info-box.success {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.4) 0%, rgba(30, 53, 16, 0.4) 100%);
    border-color: #4a7c2f;
}

.info-box.host-commands {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.4) 0%, rgba(101, 50, 14, 0.4) 100%);
    border-color: #ffd700;
}

.info-box.player-wait {
    background: linear-gradient(135deg, rgba(30, 45, 60, 0.6) 0%, rgba(25, 35, 50, 0.6) 100%);
    border-color: #4a90c7;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffd700;
}

.info-box code {
    background: rgba(10, 14, 20, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    color: #ffd700;
    font-weight: 600;
    border: 1px solid rgba(139, 69, 19, 0.4);
}

.info-box p {
    color: #c9b896;
    margin: 10px 0;
}

.whisper-command {
    margin: 20px 0;
}

.command-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(15, 20, 30, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #4a90c7;
}

.command-box code {
    flex: 1;
    background: transparent;
    padding: 0;
    font-size: 1em;
    color: #87ceeb;
}

.copy-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4365 100%);
    color: white;
    border: 2px solid #4a90c7;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #3a6f9d 0%, #2e5375 100%);
    transform: translateY(-2px);
}

.players-waiting {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.player-waiting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(30, 35, 45, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.player-waiting-item strong {
    min-width: 200px;
    color: #e0d5c7;
}

.player-info {
    color: #c9b896;
    font-size: 0.9em;
}

.command-help {
    margin-top: 20px;
    padding: 15px;
    background: rgba(10, 14, 20, 0.4);
    border-radius: 8px;
}

.command-help p {
    margin: 10px 0;
    color: #c9b896;
}

.command-help ol {
    margin: 10px 0;
    padding-left: 20px;
    color: #c9b896;
}

.command-help li {
    margin: 8px 0;
}

.group-composition {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.6) 0%, rgba(25, 30, 40, 0.6) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.group-composition h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffd700;
}

.group-members {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 35, 45, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.member-name {
    min-width: 180px;
    font-weight: 600;
    color: #e0d5c7;
}

.member-class {
    min-width: 150px;
    color: #87ceeb;
}

.member-ilvl, .member-rio {
    color: #c9b896;
    font-size: 0.9em;
}

.host-badge {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    color: #1a1f2e;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85em;
    text-shadow: none;
    border: 1px solid #8b6914;
}

.me-badge {
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4365 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85em;
    border: 1px solid #4a90c7;
}

.player-status {
    margin-left: auto;
}

/* Match Accepted Action Buttons */
.match-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.match-actions button {
    flex: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "AvantGarde", 'Palatino Linotype', serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.match-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 6px;
    pointer-events: none;
}

.match-actions button:not(.danger):not(:disabled) {
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4365 100%);
    color: #87ceeb;
    border-color: #4a90c7;
}

.match-actions button:not(.danger):not(:disabled):hover {
    background: linear-gradient(135deg, #3a6f9d 0%, #2e5375 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    filter: brightness(1.2);
}

.match-actions button.danger {
    background: linear-gradient(135deg, #8b1a1a 0%, #651414 100%);
    color: #ff6b6b;
    border-color: #aa3939;
}

.match-actions button.danger:hover {
    background: linear-gradient(135deg, #a02020 0%, #751818 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 26, 26, 0.6);
    filter: brightness(1.2);
}

.match-actions button:disabled {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.5) 0%, rgba(20, 25, 35, 0.5) 100%);
    color: rgba(201, 184, 150, 0.4);
    border-color: rgba(139, 69, 19, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

.match-actions button:disabled:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}

.match-actions button:active:not(:disabled) {
    transform: translateY(0);
}

/* Button cooldown timer */
.button-cooldown {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    color: #ffa500;
    font-weight: normal;
    letter-spacing: 0.5px;
}

