/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* Headings */
h2, h3 {
    color: #bb86fc;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
}

/* Forms */
form {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #bb86fc;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #333;
    border: none;
    border-radius: 6px;
    color: #eee;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    background-color: #444;
    outline: none;
}

/* Buttons */
button,
a.button-link {
    display: inline-block;
    padding: 12px 20px;
    background-color: #6200ee;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(98, 0, 238, 0.5);
}

button:hover,
button:focus,
a.button-link:hover,
a.button-link:focus {
    background-color: #3700b3;
    box-shadow: 0 4px 10px rgba(55, 0, 179, 0.7);
}

/* Device Links */
a.device-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #03dac6;
    color: #121212;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 6px rgba(3, 218, 198, 0.5);
}

a.device-link:hover,
a.device-link:focus {
    background-color: #018786;
    color: #fff;
    box-shadow: 0 4px 8px rgba(1, 135, 134, 0.7);
    text-decoration: none;
}

/* Links in general */
a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #3700b3;
    text-decoration: underline;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #333;
    font-weight: 600;
    color: #bb86fc;
}

tr:hover {
    background-color: #2a2a2a;
}

/* Preformatted JSON output */
pre {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
    color: #cddc39;
}

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

    table, th, td {
        font-size: 0.95em;
    }

    button,
    a.button-link {
        padding: 10px 16px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    form {
        padding: 15px;
    }

    input, button, select, textarea {
        padding: 10px;
        font-size: 0.95em;
    }

    table, th, td {
        font-size: 0.9em;
    }

    a.device-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}
