body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1c1c1e;
    color: #f2f2f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #2c2c2e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #f2f2f7;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #8e8e93;
    margin-bottom: 30px;
}

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

#ipAddress {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    background-color: #1c1c1e;
    color: #f2f2f7;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#ipAddress:focus {
    border-color: #0a84ff;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}

#convertBtn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: #0a84ff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

#convertBtn:hover {
    background-color: #339aff;
}

.results-container {
    margin-top: 20px;
    background-color: #1c1c1e;
    border-radius: 8px;
    padding: 20px;
    display: none; /* Hidden by default */
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th, .results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #3a3a3c;
}

.results-table th {
    color: #8e8e93;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

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

.results-table td:nth-child(2) {
    color: #8e8e93; /* Type column */
}

.results-table td:nth-child(3) {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-weight: 600;
}

/* Color classes based on PowerShell script */
.unifi-raw { color: #2BC9D3; } /* Cyan */
.meraki { color: #34C759; } /* Green */
.fortigate { color: #AF52DE; } /* Magenta */
.pfsense { color: #34C759; } /* Green */
.generic-hex { color: #FFCC00; } /* DarkYellow -> Yellow */
.unifi-readable { color: #FFD60A; } /* Yellow */

.error-message {
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(255, 59, 48, 0.2);
    color: #FF453A;
    border: 1px solid #FF453A;
    border-radius: 8px;
    text-align: center;
    display: none; /* Hidden by default */
}
