body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="text"]:focus {
    border-color: #007BFF;
    outline: none;
}

button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#result {
    margin-top: 20px;
    word-break: break-word;
}

#safeUrl {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 0.95rem;
}

#securityLinks a {
    display: flex;
    align-items: center;
    margin: 6px 0;
    color: #007BFF;
    text-decoration: none;
    font-size: 0.95rem;
}

#securityLinks a:hover {
    text-decoration: underline;
}

.favicon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

#historyContainer {
    margin-top: 30px;
    text-align: left;
}

.url-history {
    list-style-type: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.url-history li {
    margin: 5px 0;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.url-history li:hover {
    background-color: #e9e9e9;
}

/* Responsive mobile */
@media (max-width: 500px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.3rem;
    }

    input, button {
        font-size: 1rem;
    }

    #securityLinks a {
        font-size: 0.9rem;
    }
}
