/* Custom styles for Dashboard - Based on Jade Dynasty Vote Page */
:root {
    --primary-bg: #0a070f;
    --secondary-bg: #150d1c;
    --card-bg: rgba(22, 13, 28, 0.85);
    --accent-color: #ffd24b;
    --accent-glow: rgba(212, 175, 55, 0.5);
    --accent-hover: #e5c158;
    --accent-dark: #9c7c21;
    --secondary-accent: #a83232;
    --third-accent: #6b3fa0;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-highlight: #fff;
    --border-color: rgba(212, 175, 55, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 10px var(--accent-glow);
    --accent-color-rgb: 255, 210, 75; /* Gold */
}

body {
    background-image: url('../images/bg/landscape.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Noto Sans', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7), 0 0 10px var(--accent-glow);
}

/* Container styles */
.jade-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hide the top button row */
#ButtonRow {
    display: none !important;
}

/* Header styles */
.jade-header {
    background: linear-gradient(to bottom, rgba(26, 14, 32, 0.9), rgba(10, 6, 15, 0.9));
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.server-selector {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-left: 20px;
}

.server-name {
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-glow);
    margin-right: 5px;
}

.online-count {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.header-logo {
    text-align: center;
}

.header-logo img {
    height: 60px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.main-nav {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a i {
    margin-right: 5px;
    color: var(--accent-color);
}

.main-nav a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Welcome banner */
.welcome-banner {
    background: linear-gradient(to right, rgba(26, 14, 32, 0.7), rgba(10, 6, 15, 0.7));
    text-align: center;
    padding: 15px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    border-bottom: 1px solid var(--border-color);
}

/* Main grid layout */
.jade-dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    flex: 1;
}

/* Sidebar */
.user-profile {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(to bottom, rgba(26, 14, 32, 0.5), rgba(10, 6, 15, 0.5));
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.user-profile::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.status.online {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
    animation: pulse 2s infinite;
}

.status.offline {
    background-color: #e74c3c;
}

.username {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px var(--accent-glow);
}
.server-status-panel {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.online {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: #e74c3c;
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Main content */
.jade-main-content {
    display: flex;
    flex-direction: column;
}

.dashboard-section {
    background: linear-gradient(135deg, rgba(26, 14, 32, 0.8), rgba(10, 6, 15, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.05;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 14, 32, 0.6), rgba(10, 6, 15, 0.6));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color), 0 0 10px var(--accent-glow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.stat-icon.fallback {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-highlight);
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Transactions section */
.transactions-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.transactions-title i {
    margin-right: 10px;
}

.transactions-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    border-radius: 2px;
}

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

.transaction-item {
    background: linear-gradient(135deg, rgba(26, 14, 32, 0.5), rgba(10, 6, 15, 0.5));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.transaction-icon.gold {
    background-color: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffd700;
}

.transaction-icon.point {
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.transaction-icon.deposit {
    background-color: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.transaction-info {
    flex: 1;
}

.transaction-description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
}

.transaction-amount.negative {
    color: #e74c3c;
}

.transaction-amount.positive {
    color: #2ecc71;
}

.no-data-message {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.no-data-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    opacity: 0.5;
}

/* Exchange Modal */
.jade-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.jade-modal.show {
    display: block;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 14, 32, 0.95), rgba(10, 6, 15, 0.95));
    margin: 10% auto;
    width: 450px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s;
    position: relative;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to right, var(--accent-dark), var(--accent-color));
    color: var(--primary-bg);
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-bg);
    text-shadow: none;
    font-size: 1.3rem;
}

.close-btn {
    color: var(--primary-bg);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--text-highlight);
}

.modal-body {
    padding: 25px;
}

.modal-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1rem;
}

.exchange-rate {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.rate-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rate-value {
    color: var(--accent-color);
    font-weight: bold;
}

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

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.jade-input {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    width: 100%;
}

.jade-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-glow);
}

.input-suffix {
    padding: 0 15px;
    color: var(--accent-color);
    font-weight: bold;
    background-color: rgba(212, 175, 55, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border-color);
}

.exchange-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cost-label {
    margin-right: 10px;
    color: var(--text-muted);
}

.cost-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 5px;
}

.cost-currency {
    color: var(--text-color);
}

.exchange-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.jade-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.jade-btn.primary {
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-dark));
    color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.jade-btn.primary:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.jade-btn.secondary {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.jade-btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.jade-select {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23a0a0a0"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.jade-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-glow);
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-container .radio-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
}

.radio-container .radio-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.radio-container input[type="radio"]:checked + .radio-label:before {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-glow);
}

.radio-container .radio-label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-container input[type="radio"]:checked + .radio-label:after {
    opacity: 1;
}

.birthday-selects {
    display: flex;
    gap: 10px;
}

.birthday-selects select {
    flex: 1;
}

.alert-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.alert-message.danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: rgba(10, 6, 15, 0.8);
    border-top: 1px solid var(--border-color);
    position: relative;
    padding: 30px 0 20px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Fix for stat cards floating effect */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Fix for white boxes in footer */
footer .footer-section ul.footer-links,
footer .footer-section ul.footer-links li,
footer .footer-section ul.footer-links li a {
    background: transparent !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .jade-dashboard-grid {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .jade-dashboard-grid {
        grid-template-columns: 1fr;
    }
      
    .jade-header {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .server-selector {
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .transaction-item {
        flex-direction: column;
        text-align: center;
    }
    
    .transaction-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .transaction-info {
        margin-bottom: 10px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .birthday-selects {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .jade-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Override any body::before rules to eliminate dimming */
html body::before,
body::before,
body:after,
html body:after,
body > div.overlay,
html::before,
html::after,
.background-dimmer,
.overlay,
.dimmer,
.shader,
.darkener {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
    content: none !important;
    visibility: hidden !important;
    background-image: none !important;
    background-color: transparent !important;
    pointer-events: none !important;
}

/* Force body transparency */
body, html, #app, #root, .main-container {
    background-color: transparent !important;
}

/* Apply a clear filter to the whole page */
html {
    filter: brightness(1) !important;
}