/* Variables được định nghĩa thông qua PHP trong index.php */
/* 
:root {
    --theme-color: #2c3e50;
    --accent-color: #e74c3c;
    --sidebar-width: 350px;
    --donate-color: #f39c12;
    --donate-glow: rgba(243, 156, 18, 0.6);
}
*/

body {
    font-family: 'Roboto', sans-serif;
    background: #121212 url('../images/bg-pattern.png');
    color: #f0f0f0;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: rgba(20, 20, 30, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 80%;
    height: auto;
}

.login-form, .user-info {
    background-color: rgba(40, 40, 60, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.login-form h3, .user-info h3, .system-info h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #c0392b;
}

.btn-block {
    display: block;
    width: 100%;
}

.register-link {
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.register-link a {
    color: var(--accent-color);
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.system-info {
    background-color: rgba(40, 40, 60, 0.7);
    border-radius: 8px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-item .value {
    font-weight: bold;
    color: #3498db;
}

.nav-menu {
    background-color: rgba(40, 40, 60, 0.7);
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible; /* Cho phép badge hiển thị ra ngoài */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    padding: 0;
    position: relative;
    z-index: 1;
}

.nav-menu li {
    flex: 1;
    text-align: center;
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--accent-color);
    border-radius: 8px;
}

.content-box {
    background-color: rgba(40, 40, 60, 0.7);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    overflow: visible; /* Thay đổi từ auto thành visible */
    max-height: none; /* Bỏ giới hạn chiều cao */
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Donate Button Styles */
.donate-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--donate-glow);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.donate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 0;
}

.donate-btn i {
    position: relative;
    z-index: 1;
    animation: bounce 2s infinite;
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--donate-glow);
    background: linear-gradient(135deg, #e67e22, #d35400);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px var(--donate-glow); }
    50% { box-shadow: 0 0 20px var(--donate-glow); }
    100% { box-shadow: 0 0 10px var(--donate-glow); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Sidebar Donate Button */
.sidebar-donate {
    margin: 20px 0;
    position: relative;
}

.sidebar-donate-btn {
    display: block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--donate-glow);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    z-index: 1;
}

.sidebar-donate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.sidebar-donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--donate-glow);
}

.sidebar-donate-icon {
    display: inline-block;
    margin-right: 8px;
    animation: bounce 2s infinite;
}

.sidebar-donate-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: wobble 2s infinite;
    z-index: 2;
}

@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(5deg); }
    45% { transform: translateX(-5px) rotate(-3deg); }
    60% { transform: translateX(5px) rotate(3deg); }
    75% { transform: translateX(-3px) rotate(-1deg); }
    90% { transform: translateX(3px) rotate(1deg); }
}

/* Wcoin Display */
.wcoin-display {
    display: flex;
    align-items: center;
    background-color: rgba(243, 156, 18, 0.2);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.wcoin-icon {
    color: var(--donate-color);
    margin-right: 8px;
    font-size: 16px;
}

.wcoin-amount {
    font-weight: bold;
    color: var(--donate-color);
}

/* Support Button Styles */
.support-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.zalo-btn {
    background: linear-gradient(135deg, #0068ff, #0180ff);
}

.fb-btn {
    background: linear-gradient(135deg, #00B2FF, #006AFF);
}

.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 12px;
}

.support-icon img {
    width: 20px;
    height: 20px;
}

.support-icon i {
    font-size: 20px;
}

.support-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.support-title {
    font-weight: 500;
    font-size: 14px;
}

.support-desc {
    font-size: 12px;
    opacity: 0.8;
}

.support-btn .fa-chevron-right {
    font-size: 12px;
    opacity: 0.7;
}

.support-note {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    color: #aaa;
}

.support-note i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.7s;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Menu Donate Badge */
.donate-menu-item {
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.menu-donate-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 12;
    font-size: 10px;
    padding: 3px 8px;
}

.nav-menu .donate-btn {
    padding: 15px 10px;
    margin-top: 0;
}

/* Footer Styles */
.footer-text {
    margin-top: 10px;
    font-weight: bold;
}

.footer-text a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-text a:hover {
    text-decoration: underline;
    color: #e67e22;
}

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #7e1e1e);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c0392b, var(--accent-color));
    box-shadow: 0 0 8px var(--accent-color);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(30, 30, 40, 0.8);
}

/* Custom Scrollbar for Sidebar */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(30, 30, 40, 0.8);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.6);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-color), #7e1e1e);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #c0392b, var(--accent-color));
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.7);
}

/* Smooth Scroll Effect */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Hiệu ứng glow khi cuộn */
.sidebar::-webkit-scrollbar-thumb:active,
.main-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.9);
}

/* Hiệu ứng bounce cho Font Awesome */
.fa-bounce {
    animation: fa-bounce 1s infinite;
}

@keyframes fa-bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Hiệu ứng wobble */
.wobble {
    animation: wobble-animation 1s ease;
}

@keyframes wobble-animation {
    0% { transform: translateX(0) rotate(0); }
    15% { transform: translateX(-10px) rotate(-5deg); }
    30% { transform: translateX(10px) rotate(5deg); }
    45% { transform: translateX(-10px) rotate(-3deg); }
    60% { transform: translateX(10px) rotate(3deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
    100% { transform: translateX(0) rotate(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-content {
        margin-left: 0;
        height: auto;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu li {
        margin-bottom: 5px;
    }
}


    
    /* Gift Button Styles */
    .gift-btn {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 10px var(--gift-glow);
        animation: pulse-gift 2s infinite;
        transition: all 0.3s ease;
    }
    
    .gift-btn::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transform: rotate(45deg);
        animation: shine 3s infinite;
        z-index: 0;
    }
    
    .gift-btn i {
        position: relative;
        z-index: 1;
        animation: bounce 2s infinite;
    }
    
    .gift-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 20px var(--gift-glow);
        background: linear-gradient(135deg, #c0392b, #a93226);
    }
    
    @keyframes pulse-gift {
        0% { box-shadow: 0 0 10px var(--gift-glow); }
        50% { box-shadow: 0 0 20px var(--gift-glow); }
        100% { box-shadow: 0 0 10px var(--gift-glow); }
    }
    
    .menu-gift-badge {
        position: absolute;
        top: -10px;
        right: 10px;
        z-index: 12;
        font-size: 10px;
        padding: 3px 8px;
        background-color: #e74c3c;
    }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Styles for Jewel Bank */
.jewel-bank {
    background-color: rgba(40, 40, 60, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jewel-bank h4 {
    font-size: 16px;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    display: flex;
    align-items: center;
}

.jewel-bank h4 i {
    margin-right: 8px;
    color: #9b59b6;
}

.jewel-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ddd;
    padding: 5px 0;
}

.jewel-item:last-child {
    margin-bottom: 0;
}

.jewel-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    font-size: 14px;
}

.jewel-amount {
    font-weight: bold;
    color: #fff;
}

.empty-jewels {
    color: #aaa;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

/* Khi hover vào jewel-item */
.jewel-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 5px 8px;
    margin-left: -8px;
    margin-right: -8px;
}
