/* Gunakan system font stack */
:root {
    --primary-color: #00ff9d;
    --secondary-color: #00b4ff;
    --dark-bg: #0a192f;
    --darker-bg: #020c1b;
    --card-bg: #112240;
    --text-color: #ccd6f6;
    --text-muted: #8892b0;
    --error-color: #ff5555;
    --success-color: #50fa7b;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 180, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 157, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 180, 255, 0.3);
    padding-bottom: 0.5rem;
}

.highlight {
    color: var(--primary-color);
}

/* Loading Spinner */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 180, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Results Section */
#results {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 180, 255, 0.2);
}

.card p {
    color: var(--text-color);
    font-size: 1rem;
    word-break: break-all;
}

.full-width {
    grid-column: 1 / -1;
}

/* Raw Data Section */
.raw-data-toggle {
    text-align: center;
    margin: 2rem 0;
}

#toggleRawData {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#toggleRawData:hover {
    background-color: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

#rawData {
    background-color: var(--darker-bg);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid rgba(0, 180, 255, 0.1);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Error Section */
#error {
    color: var(--error-color);
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

#errorMessage {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Add this to your style.css */
.watermark {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 180, 255, 0.1);
}

.watermark p {
    margin: 0;
}

/* Glow Effects for Tech Feel */
.card:hover h3 {
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}

.highlight {
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

h1:hover .highlight::after,
h2:hover .highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}