:root {
    --primary-color: #ff4500;
    --primary-hover: #ff6600;
    --secondary-color: #eaeaea;
    --text-color: #eaeaea;
    --bg-color: #000000;
    --card-bg: #1c1c1c;
    --card-shadow: 0 4px 8px rgba(255, 69, 0, 0.2);
    --border-color: #333333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ff6600;
    --info-color: #17a2b8;
}

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #ff6600;
    --primary-hover: #ff7700;
    --secondary-color: #f1f1f1;
    --text-color: #f1f1f1;
    --bg-color: #000000;
    --card-bg: #1c1c1c;
    --card-shadow: 0 4px 8px rgba(255, 69, 0, 0.3);
    --border-color: #444;
    --success-color: #34d058;
    --danger-color: #ea4f62;
    --warning-color: #ff6600;
    --info-color: #2aa7ce;
}

/* Header Logo */
.header-logo {
    max-height: 60px;
    width: auto;
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin-bottom: 60px;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
}

header h1 a {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Main Content */
main {
    min-height: calc(100vh - 180px);
    padding: 20px 0;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Forms */
form {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s;
}

form input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.g-recaptcha {
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-success {
    background-color: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

button:disabled:hover {
    transform: none;
}

/* Faucet Container */
.faucet-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .faucet-container {
        grid-template-columns: 3fr 2fr;
    }
}

.faucet-box, .mining-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.faucet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 69, 0, 0.1);
}

.stat i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.stat h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Mining Container */
.mining-container h3 {
    margin-bottom: 15px;
    text-align: center;
}

.mining-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#iframeContainer {
    width: 100%;
    min-height: 200px;
}

#iframeContainer iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 5px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

/* Transaction List */
.recent-transactions, 
.history-page {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.recent-transactions h3,
.history-page h2,
.transactions h3,
.top-recipients h3 {
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: rgba(255, 69, 0, 0.1);
    font-weight: bold;
}

table tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--secondary-color);
    font-weight: bold;
}

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

/* 404 Page */
.error-page {
    text-align: center;
    padding: 50px 0;
}

.error-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.error-page p {
    margin-bottom: 25px;
    color: var(--text-color);
}

/* History Page Styles */
.history-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .history-container {
        grid-template-columns: 1fr 3fr;
    }
}

.top-recipients {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.top-recipients ul {
    list-style: none;
}

.top-recipients li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-recipients li:last-child {
    border-bottom: none;
}

.top-recipients .username {
    font-weight: bold;
}

.top-recipients .amount {
    color: var(--primary-color);
    font-weight: bold;
}

.top-recipients .count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.transactions {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-hover);
}

.page-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-ellipsis {
    padding: 8px 12px;
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    background-color: rgba(255, 69, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.stat-info h3, .stat-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Server Stats Page */
.stats-page {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.stats-page h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-section {
    margin-bottom: 20px;
}

.stats-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

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

/* CPU Load Display Styles */
.cpu-load-details {
    margin-top: 8px;
    padding: 5px 0;
    border-top: 1px dashed var(--border-color);
}

.load-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.load-label {
    color: var(--text-color);
    opacity: 0.8;
}

.load-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* FAQ Page */
.faq-page {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.faq-page h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: rgba(255, 69, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(255, 69, 0, 0.2);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.faq-question h3 i {
    margin-right: 10px;
    transition: transform 0.3s;
}

.faq-question.active h3 i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.6s ease;
}

.faq-answer p, .faq-answer ul {
    margin-bottom: 15px;
    color: var(--text-color);
}

.faq-answer p:last-child, .faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer.show {
    padding: 15px;
    max-height: 1000px;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--primary-color);
    font-weight: bold;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
}

#theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
}

#theme-toggle-btn:hover {
    transform: translateY(-5px);
}

.fa-sun {
    display: none;
}

.dark-mode .fa-moon {
    display: none;
}

.dark-mode .fa-sun {
    display: inline-block;
}

/* Reward Options */
.reward-options {
    margin-bottom: 20px;
}

.reward-options label {
    display: block;
    margin-bottom: 10px;
}

.reward-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-option {
    display: flex;
    align-items: center;
    background-color: rgba(255, 69, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.reward-option:hover {
    background-color: rgba(255, 69, 0, 0.1);
    border-color: var(--primary-color);
}

.reward-option input[type="radio"] {
    margin-right: 12px;
}

.option-label {
    display: flex;
    flex-direction: column;
}

.option-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.option-description {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Reward Wheel Styles */
.reward-wheel-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.reward-wheel {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
}

.wheel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0) 90%, rgba(0, 0, 0, 0.6));
    z-index: 2;
    pointer-events: none;
}

.wheel-items {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: transform 0.1s linear;
    z-index: 1;
}

.wheel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 100px;
    margin: 0 2px;
    color: white;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s;
}

/* Reward item rarity styles */
.wheel-item.common {
    background: linear-gradient(135deg, #444444, #666666);
    border: 2px solid #888888;
}

.wheel-item.uncommon {
    background: linear-gradient(135deg, #207f20, #2ecc40);
    border: 2px solid #3edc50;
}

.wheel-item.rare {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border: 2px solid #93c5fd;
}

.wheel-item.epic {
    background: linear-gradient(135deg, #6b21a8, #a855f7);
    border: 2px solid #d8b4fe;
}

.wheel-item.legendary {
    background: linear-gradient(135deg, #b91c1c, #f59e0b);
    border: 2px solid #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.item-value {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Reward result display */
.reward-result {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

.result-message {
    background-color: rgba(40, 167, 69, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid var(--success-color);
}

.result-message h3 {
    color: var(--success-color);
    margin-bottom: 5px;
}

.result-message p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        margin-bottom: 10px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .faucet-container,
    .history-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .stat {
        flex-direction: column;
        text-align: center;
    }
    
    .stat i,
    .stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .reward-wheel-container {
        height: 120px;
    }
    
    .wheel-item {
        min-width: 120px;
    }
    
    .item-value {
        font-size: 1rem;
    }
}