:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary: #00c853;
    --warning: #ff9800;
    --danger: #f44336;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px 30px;
    animation: fadeIn 1s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 2.8rem;
    color: var(--secondary);
    animation: pulse 2s infinite;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1a73e8, #00c853);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Scanner Section */
.scanner-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out;
    color: var(--dark);
}

.scanner-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--dark);
}

.scanner-title i {
    color: var(--primary);
    font-size: 1.8rem;
}

.input-group {
    display: flex;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.4);
    transform: translateY(-3px);
}

#urlInput {
    flex: 1;
    padding: 20px 25px;
    border: none;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    background: #f8fafc;
    color: var(--dark);
}

#urlInput:focus {
    outline: none;
    background: #fff;
}

#urlInput::placeholder {
    color: var(--gray);
}

#scanBtn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#scanBtn:hover {
    background: linear-gradient(90deg, var(--primary-dark), #0a3d91);
    letter-spacing: 0.5px;
}

#scanBtn:active {
    transform: scale(0.98);
}

/* Result Section */
.result-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    color: var(--dark);
    animation: slideUp 0.6s ease-out;
    display: none;
}

.result-section.visible {
    display: block;
}

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.security-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-icon {
    font-size: 2.5rem;
}

.status-text {
    font-size: 1.8rem;
    font-weight: 700;
}

.security-score {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
}

.scan-details {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.check-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.check-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.check-success {
    color: var(--secondary);
    background: rgba(0, 200, 83, 0.1);
}

.check-warning {
    color: var(--warning);
    background: rgba(255, 152, 0, 0.1);
}

.check-danger {
    color: var(--danger);
    background: rgba(244, 67, 54, 0.1);
}

.risk-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

.risk-low {
    background-color: rgba(0, 200, 83, 0.15);
    color: var(--secondary);
}

.risk-medium {
    background-color: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.risk-high {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--danger);
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: rgba(26, 115, 232, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 30px;
}

.loading.hidden {
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(26, 115, 232, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid var(--danger);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    color: var(--danger);
}

.error-message.hidden {
    display: none;
}

/* Hasil Pemeriksaan Styling */
.result-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.result-content b {
    color: var(--dark);
    font-weight: 600;
}

.result-content {
    line-height: 1.8;
}

.result-content .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
}

.status-safe {
    background-color: rgba(0, 200, 83, 0.15);
    color: var(--secondary);
}

.status-warning {
    background-color: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.status-danger {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--danger);
}

.ssl-status {
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 5px;
}

.ssl-safe {
    background-color: rgba(0, 200, 83, 0.1);
    color: var(--secondary);
}

.ssl-danger {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.keyword-badge {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Workflow Section Styles
   ============================================ */

.workflow-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-section h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.workflow-section h2 i {
    color: var(--primary);
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.workflow-step {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.workflow-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(26, 115, 232, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(2) { animation-delay: 0.2s; }
.workflow-step:nth-child(3) { animation-delay: 0.3s; }
.workflow-step:nth-child(4) { animation-delay: 0.4s; }
.workflow-step:nth-child(5) { animation-delay: 0.5s; }
.workflow-step:nth-child(6) { animation-delay: 0.6s; }
.workflow-step:nth-child(7) { animation-delay: 0.7s; }

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-content code {
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.step-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.google-tag {
    background: rgba(66, 133, 244, 0.15);
    color: #4285f4;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.virustotal-tag {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.score-tag {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.result-tag {
    background: rgba(0, 200, 83, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.step-arrow {
    margin-left: 25px;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.workflow-step:hover .step-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.workflow-step:last-child .step-arrow {
    display: none;
}

/* Timeline Visualization */
.workflow-timeline {
    position: relative;
    height: 100px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: translateY(-50%);
}

.timeline-point {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.timeline-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.5);
}

.point-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-point:hover .point-label {
    opacity: 1;
}

/* Additional Info Cards */
.workflow-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(26, 115, 232, 0.3);
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-card h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Styles for Workflow */
@media (max-width: 768px) {
    .workflow-section h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .workflow-step {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-point {
        display: none;
    }
    
    .workflow-info {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .workflow-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .workflow-step {
        padding: 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .info-card {
        padding: 20px;
    }
}

/* ============================================
   Enhanced Result Section Styles
   ============================================ */

.trust-score-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(0, 200, 83, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.trust-score-circle {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.trust-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.trust-score-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.trust-score-circle-bg {
    stroke: rgba(0, 0, 0, 0.1);
}

.trust-score-circle-fill {
    stroke: var(--primary);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.trust-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.trust-info h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-trusted {
    background: rgba(0, 200, 83, 0.15);
    color: var(--secondary);
}

.trust-caution {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.trust-dangerous {
    background: rgba(244, 67, 54, 0.15);
    color: var(--danger);
}

.trust-unknown {
    background: rgba(100, 116, 139, 0.15);
    color: var(--gray);
}

/* Sources Section */
.sources-section {
    margin: 30px 0;
}

.sources-section h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.source-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-light);
}

.source-card h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.stat-value.safe {
    color: var(--secondary);
}

.stat-value.warning {
    color: var(--warning);
}

.stat-value.danger {
    color: var(--danger);
}

.gsb-clean {
    color: var(--secondary);
}

.gsb-threat {
    color: var(--danger);
}

/* Security Details */
.security-details {
    background: rgba(0, 200, 83, 0.05);
    border-left: 4px solid var(--secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.security-details.warning {
    background: rgba(255, 152, 0, 0.05);
    border-left-color: var(--warning);
}

.security-details.danger {
    background: rgba(244, 67, 54, 0.05);
    border-left-color: var(--danger);
}

.security-details h4 {
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-details p {
    color: var(--dark);
    margin: 0;
    line-height: 1.6;
}

/* Trust Badge */
.trust-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .trust-score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-info h3 {
        justify-content: center;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .trust-score-circle {
        width: 80px;
        height: 80px;
    }
    
    .trust-score-text {
        font-size: 1.4rem;
    }
}

/* ============================
   API Documentation Section
   ============================ */

.api-documentation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.api-documentation h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.api-documentation h2 i {
    color: var(--primary);
    font-size: 2rem;
}

.api-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    color: var(--dark);
    animation: slideUp 0.6s ease-out;
}

.api-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-card h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin: 25px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-light);
}

.api-card pre {
    background: #f8fafc;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    margin: 15px 0;
    color: var(--dark);
    position: relative;
    transition: all 0.3s ease;
}

.api-card pre:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Syntax highlighting untuk kode */
.api-card pre code {
    color: #2d3748;
}

.api-card pre .hljs-keyword {
    color: #d73672;
    font-weight: 600;
}

.api-card pre .hljs-string {
    color: #0a6e0a;
}

.api-card pre .hljs-number {
    color: #1c6b48;
}

.api-card pre .hljs-literal {
    color: #1a5fb4;
}

.api-card pre .hljs-attr {
    color: #c64600;
}

/* Copy button untuk code blocks */
.code-block {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.2);
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-5px);
}

.code-block:hover .copy-btn {
    opacity: 1;
    transform: translateY(0);
}

.copy-btn:hover {
    background: rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: rgba(0, 200, 83, 0.1);
    color: var(--secondary);
    border-color: rgba(0, 200, 83, 0.2);
}

.copyApiKey-btn {
    top: 15px;
    right: 15px;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.2);
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(-5px);
}
.copyApiKey-btn:hover {
    background: rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
}
.copyApiKey-btn.copied {
    background: rgba(0, 200, 83, 0.1);
    color: var(--secondary);
    border-color: rgba(0, 200, 83, 0.2);
}

/* API Key generator section */
.api-key-section {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(0, 200, 83, 0.05) 100%);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.api-key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.api-key-header h4 {
    color: var(--primary);
    margin: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-generator {
    display: flex;
    gap: 15px;
    align-items: center;
}

#apiKeyDisplay {
    flex: 1;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--dark);
    word-break: break-all;
}

#generateApiKey {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#generateApiKey:hover {
    background: linear-gradient(90deg, var(--primary-dark), #0a3d91);
    transform: translateY(-2px);
}

.api-note {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--warning);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    color: var(--dark);
}

.api-note i {
    color: var(--warning);
    margin-right: 10px;
}

/* Responsive untuk dokumentasi API */
@media (max-width: 768px) {
    .api-documentation h2 {
        font-size: 1.6rem;
    }
    
    .api-card {
        padding: 25px;
    }
    
    .api-card h3 {
        font-size: 1.3rem;
    }
    
    .api-card pre {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .copy-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        width: 100%;
        justify-content: center;
    }
    
    .key-generator {
        flex-direction: column;
    }
    
    #apiKeyDisplay {
        width: 100%;
    }
    
    #generateApiKey {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .api-documentation {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .api-card {
        padding: 20px;
    }
    
    .api-card pre {
        padding: 12px;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .scanner-section {
        padding: 25px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #urlInput {
        padding: 18px;
        font-size: 1rem;
    }
    
    #scanBtn {
        padding: 18px;
        justify-content: center;
    }
    
    .security-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .result-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    header {
        padding: 20px 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .scanner-section {
        padding: 20px;
    }
    
    .result-section {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .status-text {
        font-size: 1.4rem;
    }
}