
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&display=swap'); /* Font Tech Baru */
body {
    font-family: 'Outfit', sans-serif;
    background-color: #09090b;
    color: #e4e4e7;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}
/* Cyberpunk Canvas */
#web3-bg,
#web3-bg-support {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.25;
    z-index: -5;
}
/* Fix overflow dan scroll untuk keseluruhan website */
html, body {
    overflow-x: hidden;
}
body {
    overflow-y: auto;
}
#main-website-content {
    overflow-y: auto;
    min-height: 100vh;
}

/* Atur section agar bisa scroll */
section {
    overflow-y: auto;
    min-height: calc(100vh - 120px);
}
#editor, #preview-full, #admin, #selection, #landing {
    overflow-y: auto;
    max-height: 100vh;
}
/* UI Components */
.glass-card { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); 
}

.gradient-text { 
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.btn-primary { 
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); 
    transition: 0.3s; 
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.5); 
}

.web3-btn {
    background: linear-gradient(135deg, #00dcff 0%, #0072ff 50%, #a855f7 100%);
    background-size: 200% auto;
    border: 1px solid rgba(0, 224, 255, 0.5);
    box-shadow: 
        0 0 15px rgba(0, 220, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.web3-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.web3-btn:hover::before {
    left: 100%;
}

.web3-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 25px rgba(0, 220, 255, 0.7),
        0 10px 25px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background-position: right center;
}
.input-dark { 
    background: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: white; 
    transition: 0.3s; 
}

.input-dark:focus { 
    border-color: #38bdf8; 
    outline: none; 
    background: rgba(0,0,0,0.5); 
}
.hidden-section { display: none !important; }

/* AI Assistant Styles */
.message-user { 
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); 
    color: white; 
    border-radius: 1rem; 
    padding: 1rem; 
    max-width: 80%; 
    margin-left: auto; 
    margin-bottom: 1rem; 
}
.message-ai { 
    background: rgba(30, 41, 59, 0.8); 
    border: 1px solid rgba(56, 189, 248, 0.2); 
    border-radius: 1rem; 
    padding: 1rem; 
    max-width: 80%; 
    margin-bottom: 1rem; 
}
.typing-dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: #38bdf8; 
    margin: 0 2px; 
    display: inline-block; 
}
.typing-animation { 
    animation: typing 1.2s infinite ease-in-out; 
}
.typing-animation:nth-child(2) { animation-delay: 0.2s; }
.typing-animation:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 
    0%, 100% { opacity: 0.3; transform: translateY(0px); } 
    50% { opacity: 1; transform: translateY(-5px); } 
}
/* Kertas A4 Preview (Wajib Putih Bersih) */
.page-container { 
    background: #52525b; 
    padding: 20px; 
    display: flex; 
    justify-content: center; 
}

.a4-paper {
    background: white; 
    color: #1f2937; 
    width: 210mm; 
    min-height: 297mm;
    max-height: 297mm;
    padding: 25mm; 
    margin: 0 auto; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    font-family: 'Times New Roman', serif; 
    position: relative;
    font-size: 12pt; 
    line-height: 1.5;
    box-sizing: border-box;
    overflow: hidden;
    page-break-after: always;
    page-break-inside: avoid;
}

/* Styling Kertas Preview */
.preview-paper {
    background: white;
    color: #1e293b;
    min-height: 500px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Placeholder saat kosong */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    text-align: center;
}
/* Watermark System (Optimized for Mobile) */
.watermark {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: clamp(4rem, 6vw, 8rem); 
    font-weight: 900; 
    color: rgba(255, 0, 0, 0.12);
    border: clamp(8px, 1vw, 12px) solid rgba(255, 0, 0, 0.12); 
    padding: clamp(10px, 2vw, 16px);
pointer-events: none; 
    z-index: 50; 
    white-space: nowrap;
}
/* Cloud Sync Specific Styles */
.cloud-sync-card {
    background: rgba(2,6,23,0.85);
    border: 1px solid rgba(59,130,246,0.35);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 40px rgba(59,130,246,0.15);
}

.cloud-status-online {
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.cloud-status-syncing {
    background: #38bdf8;
    box-shadow: 0 0 12px #38bdf8;
}

.cloud-status-offline {
    background: #ef4444;
    box-shadow: 0 0 12px #ef4444;
}

.sync-progress-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.sync-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Blockchain Security Styles */
.glass-card-blockchain {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59,130,246,.3);
    box-shadow: 0 0 60px rgba(59,130,246,.25);
}

.blockchain-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 0 20px rgba(59,130,246,.45);
    transition: all 0.3s ease;
}

.blockchain-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(59,130,246,.7);
}

.output {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    color: #d1d5db;
}

/* Placeholder saat kosong */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    text-align: center;
}
