/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Global Background Styling */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--page-background-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

/* Apply background directly on body when data-background is present */
body[data-background] {
    background-image: var(--page-background-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Ensure header doesn't block background */
.header {
    position: relative;
    z-index: 10;
}

/* Ensure main content doesn't block background */
.main-content {
    position: relative;
    z-index: 5;
}

/* Fallback background when no image is set */
body:not([data-background]) {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: transparent;
    min-height: 200px;
    position: relative;
}

.header-background {
    background: transparent;
    padding: 20px 0;
}

.logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.main-logo {
    display: inline-block;
}

.logo-image {
    width: 180px;
    height: auto;
    background: transparent;
    margin: 0 auto 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.header-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: 600;
}

/* Navigation */
.main-nav {
    background: rgba(0,0,0,0.8);
    border-radius: 5px;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #ff4444;
    color: #ffffff;
}

/* Banner Section */
.banner-section {
    margin: 20px 0;
}

.banner {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23DAA520" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.banner-left {
    flex: 1;
    z-index: 1;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #DAA520;
    margin-bottom: 10px;
    font-family: 'Times New Roman', serif;
}

.banner-url {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.discord-link {
    color: #7289DA;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-link:hover {
    color: #ffffff;
}

.banner-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.banner-character {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #8B008B, #FF8C00);
    border-radius: 50%;
    position: relative;
}

.banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-download {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: #ff4444;
    color: #ffffff;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}



/* Block Styles */
.block {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.block-title {
    background: #ff4444;
    color: #ffffff;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

/* Login Block */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #cccccc;
    font-weight: 600;
}

.form-group input {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #2a2a2a;
    color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #ff4444;
}

.btn-login {
    background: #ff4444;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: #cc3333;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-bottom: 10px;
}

.forgot-password {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Signup Button */
.signup-section {
    margin-top: 15px;
    text-align: center;
}

.btn-signup {
    background: #4CAF50;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.btn-signup:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #ffffff;
}

/* Account Information Block */
.account-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 5px;
}

.user-avatar {
    font-size: 3rem;
    color: #ff6b6b;
}

.user-info {
    flex: 1;
}

.username {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-time {
    color: #cccccc;
    font-size: 0.9rem;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-my-account {
    background: #ff4444;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-my-account:hover {
    background: #cc3333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-logout {
    background: #666666;
    color: #ffffff;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: #555555;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Server Status Block */
.server-status {
    text-align: center;
}

.status-indicator {
    color: #ffffff;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.status-indicator.online {
    background: #00aa00;
}

.status-indicator.maintenance {
    background: #ff8800;
}

.player-count {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 10px;
}

.total-registered {
    color: #cccccc;
    font-size: 1rem;
}

/* Leader Club Block */
.leader-table table {
    width: 100%;
    border-collapse: collapse;
}

.leader-table th,
.leader-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.leader-table th {
    background: #333;
    color: #ffffff;
    font-weight: bold;
}

.leader-table td {
    color: #cccccc;
}

/* News Block */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 5px;
    border-left: 4px solid #ff4444;
}

.news-icon {
    color: #ff4444;
    font-size: 1.2rem;
    margin-top: 2px;
}

.news-content {
    flex: 1;
}

.news-title {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
}

.news-time {
    color: #888888;
    font-size: 0.9rem;
}

/* Discord Block */
.discord-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discord-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 5px;
}

.discord-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7289DA;
    font-weight: bold;
}

.discord-logo i {
    font-size: 1.5rem;
}

.discord-members {
    color: #cccccc;
    font-size: 0.9rem;
}

.voice-room h4 {
    color: #ffffff;
    margin-bottom: 10px;
}

.voice-members {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.voice-member {
    color: #cccccc;
    padding: 5px 10px;
    background: #2a2a2a;
    border-radius: 3px;
}

.btn-join-discord {
    background: #7289DA;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-join-discord:hover {
    background: #5b6eae;
}

/* Recharge Block */
.recharge-block {
    text-align: center;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 70px !important;
    overflow: hidden !important;
    width: 100% !important;
}

/* Force remove all spacing for recharge */
.recharge-block,
.recharge-block *,
.recharge-link,
.recharge-icon,
.recharge-gif {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: none !important;
    outline: none !important;
}

.recharge-gif {
    display: block !important;
    vertical-align: top !important;
}

/* Override block margin for recharge */
.recharge-block.block {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Remove any spacing from recharge link */
.recharge-link {
    text-decoration: none;
    color: inherit;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.recharge-link:hover {
    transform: scale(1.05);
}

.recharge-gif {
    width: 226px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Additional override to ensure no spacing */
div.recharge-block,
div.recharge-block.block,
a.recharge-link,
img.recharge-gif {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    height: 70px !important;
    max-height: 70px !important;
    overflow: hidden !important;
}

/* Super strong override untuk menghilangkan semua spacing */
.block.recharge-block,
.block.recharge-block *,
.block.recharge-block a,
.block.recharge-block img {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Override untuk parent container juga */
.content-grid .column-left .recharge-block,
.content-grid .column-left .recharge-block * {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Final override - menghilangkan semua spacing dengan selector yang sangat spesifik */
div.block.recharge-block,
div.block.recharge-block > a,
div.block.recharge-block > a > img,
div.block.recharge-block * {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 70px !important;
    max-height: 70px !important;
}

/* Kurangi jarak antar block di column kiri */
.column-left .block {
    margin-bottom: 5px !important;
}

.column-left .block:last-child {
    margin-bottom: 0 !important;
}

/* Spender Block */
.spender-content {
    text-align: center;
    padding: 30px;
}

.no-data {
    color: #888888;
    font-style: italic;
}

/* Player Rank Block */
.player-rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 5px;
}

.rank-number {
    color: #ff4444;
    font-weight: bold;
    min-width: 20px;
}

.player-name {
    color: #ffffff;
    font-weight: 600;
    flex: 1;
}

.player-score {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-right {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        width: 140px;
        height: auto;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

/* Dummy Info Styles */
.dummy-info {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
}

.dummy-info h4 {
    color: #ff6b6b;
    margin-bottom: 8px;
    font-size: 14px;
}

.dummy-info p {
    margin: 4px 0;
    font-size: 12px;
    color: #cccccc;
}

/* Login Page Specific Styles */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ff6b6b;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff6b6b;
}

.forgot-password {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ff4444;
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
    color: #cccccc;
    font-size: 14px;
}

.register-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #ff4444;
    text-decoration: underline;
}

.dummy-accounts-block {
    margin-top: 20px;
}

.account-list {
    margin-top: 10px;
}

.account-item {
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 12px;
    color: #cccccc;
    border-left: 3px solid #ff6b6b;
}

.account-item strong {
    color: #ff6b6b;
    font-weight: 600;
}

/* Enhanced form group styles for login page */
.login-block .form-group {
    margin-bottom: 20px;
}

.login-block .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-block .form-group label i {
    color: #ff6b6b;
    width: 16px;
}

.login-block .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-block .form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.login-block .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-block .btn-login {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-block .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff4444 0%, #ff0000 100%);
}

.login-block .btn-login:active {
    transform: translateY(0);
}