:root {
    --sw-primary: #1770ff;
    --sw-bg: #f5f7fa;
    --sw-accent: #5e17eb;
    --sw-text: #2d3748;
    --sw-success: #2ecc71;
    --sw-warning: #f1c40f;
    --sw-danger: #e74c3c;
    --sw-card-bg: #ffffff;
    --sw-radius: 12px;
    --sw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#secureweb-checker-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: var(--sw-bg);
    padding: 40px;
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    color: var(--sw-text);
}

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

.sw-logo {
    max-width: 80px;
    margin-bottom: 15px;
    height: auto;
}

.sw-header h2 {
    color: var(--sw-primary);
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
}

.sw-header p {
    color: #718096;
    margin: 0;
}

.sw-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#sw-url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--sw-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    /* Fix flex overflow */
}

#sw-url-input:focus {
    border-color: var(--sw-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 112, 255, 0.2);
}

#sw-check-btn {
    background: var(--sw-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--sw-radius);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    white-space: nowrap;
}

#sw-check-btn:hover {
    background: #1059d6;
    transform: translateY(-2px);
}

.sw-examples {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #718096;
}

.sw-example-btn {
    background: none;
    border: none;
    color: var(--sw-primary);
    cursor: pointer;
    text-decoration: underline;
    padding: 0 5px;
    margin: 5px 0;
    display: inline-block;
}

/* Loading Animation */
#sw-loading {
    text-align: center;
    padding: 40px;
}

.sw-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--sw-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Results Card */
#sw-results {
    background: var(--sw-card-bg);
    border-radius: var(--sw-radius);
    padding: 30px;
    box-shadow: var(--sw-shadow);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sw-score-card {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.sw-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sw-score-value {
    font-size: 2.5rem;
    line-height: 1;
}

.sw-score-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sw-risk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: var(--sw-radius);
    overflow: hidden;
}

.sw-risk-table th,
.sw-risk-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.sw-risk-table th {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.sw-risk-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.sw-risk-table tr:hover {
    background-color: #f1f5f9;
}

/* Liveness Info Box */
.sw-liveness-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--sw-radius);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sw-liveness-item {
    text-align: center;
}

.sw-liveness-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.sw-liveness-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sw-text);
}

.sw-status-live {
    color: var(--sw-success);
}

.sw-status-dead {
    color: var(--sw-danger);
}

.sw-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.sw-badge-low {
    background: rgba(46, 204, 113, 0.1);
    color: var(--sw-success);
}

.sw-badge-medium {
    background: rgba(241, 196, 15, 0.1);
    color: var(--sw-warning);
}

.sw-badge-high {
    background: rgba(231, 76, 60, 0.1);
    color: var(--sw-danger);
}

/* Buttons */
.sw-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sw-btn {
    padding: 12px 25px;
    border-radius: var(--sw-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.sw-whatsapp {
    background: #25D366;
    color: white;
}

.sw-whatsapp:hover {
    background: #128C7E;
}

.sw-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.sw-secondary:hover {
    background: #e2e8f0;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    #secureweb-checker-wrapper {
        padding: 20px;
        margin: 10px;
    }

    .sw-input-group {
        flex-direction: column;
    }

    #sw-check-btn {
        width: 100%;
    }

    .sw-risk-table th,
    .sw-risk-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .sw-risk-table thead {
        display: none;
    }

    .sw-risk-table tr {
        display: block;
        margin-bottom: 20px;
        background: #f8fafc;
        padding: 15px;
        border-radius: 8px;
    }

    .sw-risk-table td {
        border: none;
        padding: 5px 0;
    }

    .sw-risk-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #718096;
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
}