/* Reset default styles for cross-browser consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7fa;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    /*color: #ecf0f1;*/
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Main content */
main {
    /*max-width: 800px;*/
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    color: #34495e;
    margin: 1.5rem 0 0.5rem;
}

/* Forms */
form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /*max-width: 400px;*/
    margin: 0 auto;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #34495e;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

/* Lists for portal */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #2c3e50;
    /*color: #ecf0f1;*/
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive design */
@media (max-width: 600px) {
    main {
        padding: 0 0.5rem;
    }

    form {
        padding: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* API Key table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.api-key {
    font-family: monospace;
    font-size: 0.95em;
}

/* Button Variants */
.btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-danger {
    background-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background-color: #1e8449;
}

.btn-secondary {
    background-color: #7f8c8d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #626e70;
}

/* Action button layout */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.alias-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.alias-form input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Responsive fix for action buttons */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
    }

    .alias-form {
        flex-direction: column;
        align-items: stretch;
    }

    .alias-form input[type="text"] {
        width: 100%;
    }
}

.generate-form {
    display: flex;
    flex-direction: row;
    width: 100%
}