
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

form {
    background: var(--card-background);
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn,
button[type="submit"] {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-success {
    background: var(--success-color);
}

.btn-danger {
    background: var(--danger-color);
}

.btn:hover,
button[type="submit"]:hover {
    opacity: 0.9;
}

.table-container {
    max-width: 900px;
    margin: 2rem auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

.actions a {
    margin-right: 1rem;
}

.json-data {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    background: #e9ecef;
    padding: 1rem;
    border-radius: 4px;
}

.current-file {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.navbar .user-info {
    font-weight: 600;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Adds space between buttons */
    margin-top: 1.5rem;
}

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 3rem; /* Make space for the icon */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-color);
}
