/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

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

/* Title */
.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Search Box */
.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    width: 200px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-box button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #0056b3;
}

/* Result Box */
#result-container {
    text-align: left;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.data-entry {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.data-entry:last-child {
    border-bottom: none;
}

.key {
    font-weight: bold;
    color: #007bff;
}

/* Theme Toggle Button */
#theme-toggle {
    margin-top: 20px;
    padding: 10px 15px;
    background: #ff8c00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#theme-toggle:hover {
    background: #cc7000;
}

/* Dark Mode */
.dark-mode {
    background: #1e1e1e;
    color: #869f9d;
}

.dark-mode .container {
    background: #292929;
}

.dark-mode .search-box input {
    background: #333;
    color: white;
    border: 2px solid #555;
}

.dark-mode .search-box button {
    background: #ff6b6b;
}

.dark-mode .search-box button:hover {
    background: #d33a3a;
}

.dark-mode #theme-toggle {
    background: #4caf50;
}

.dark-mode #theme-toggle:hover {
    background: #388e3c;
}

.dark-mode .key {
    color: #ffb400;
}
