/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #00d4ff, #ff6b35);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-outline:hover {
    background: #00d4ff;
    color: #000;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Mining Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mining-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bitcoin-symbol {
    font-size: 8rem;
    color: #f7931a;
    animation: pulse 2s infinite;
    z-index: 2;
}

.mining-chips {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chip {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d4ff, #ff6b35);
    border-radius: 4px;
    animation: float 3s infinite ease-in-out;
}

.chip:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.chip:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.chip:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Peças Grid */
.pecas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.peca-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.peca-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.peca-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.peca-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.peca-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* Máquinas Grid */
.maquinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.maquina-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.maquina-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.maquina-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.maquina-image i {
    font-size: 4rem;
    color: #00d4ff;
}

.maquina-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.maquina-specs {
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.maquina-price {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Admin Section */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-container h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-container p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-container .form-group {
    margin-bottom: 1.5rem;
}

.login-container input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.login-container input::placeholder {
    color: #999;
}

.login-container input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.login-error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid #ff4757;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.admin-content {
    animation: fadeIn 0.5s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.admin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.admin-form h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

.admin-list {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.admin-list h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.machines-list {
    max-height: 500px;
    overflow-y: auto;
}

.machine-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.machine-item:hover {
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.machine-item h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.machine-specs {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.machine-price {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 1rem;
}

.machine-actions {
    display: flex;
    gap: 0.5rem;
}

.machine-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.machine-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.machine-status.ativo {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.machine-status.inativo {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.machine-status.esgotado {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Rentabilidade Section */
.rentabilidade-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bitcoin-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.bitcoin-price h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: #00d4ff;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.change {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.change.negative {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.last-update {
    color: #ccc;
    font-size: 0.9rem;
}

.calculator {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.calc-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.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.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.machine-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.machine-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.machine-select option {
    background: #1a1a2e;
    color: #fff;
}


.crypto-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.crypto-details h4 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.crypto-details p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.calc-results {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 12px;
    padding: 1.5rem;
}

.calc-results h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #ccc;
    font-weight: 500;
}

.result-value {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Loading message styles */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.loading-message p {
    margin: 0;
}

/* Error message styles */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ff4757;
    font-size: 1.1rem;
    text-align: center;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-message p {
    margin: 0;
}

/* Empty catalog message */
.empty-catalog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-align: center;
}

.empty-catalog i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffa502;
}

.empty-catalog p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .login-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .admin-form {
        margin-bottom: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .machines-list {
        max-height: 400px;
    }
    
    .machine-actions {
        flex-direction: column;
    }
    
    .machine-actions .btn {
        width: 100%;
    }

    .rentabilidade-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .bitcoin-info {
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .calculator {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .calc-form {
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .form-group input {
        font-size: 16px; /* Previne zoom no iOS */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .btn-large {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    .calc-results {
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .result-label {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    .result-value {
        font-size: 1.2rem;
        font-weight: 700;
        word-wrap: break-word;
    }

    .pecas-grid,
    .maquinas-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .mining-animation {
        width: 200px;
        height: 200px;
    }
    
    .bitcoin-symbol {
        font-size: 5rem;
    }
    
    /* Melhorias específicas para seção de rentabilidade em mobile */
    .rentabilidade-container {
        gap: 1.5rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
        margin: 0;
    }
    
    .bitcoin-info {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .bitcoin-price h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
    }
    
    .price {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .currency {
        font-size: 1.2rem;
    }
    
    .calculator {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .calc-form {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        word-wrap: break-word;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .btn-large {
        padding: 12px 16px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .calc-results {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .calc-results h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
    }
    
    .result-item {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .result-label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        word-wrap: break-word;
    }
    
    .result-value {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #ff6b35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099cc, #e55a2b);
}


/* Admin Page Specific Styles */
.admin-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin page header adjustments */
.admin-page .header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.admin-page .nav-link {
    color: #fff;
    transition: color 0.3s ease;
}

.admin-page .nav-link:hover {
    color: #00d4ff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
