/* ---- Base ---- */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

body.app {
    margin: 20px;
    padding: 0;
}

body.auth {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1 {
    color: #333;
    margin-top: 0;
}

body.auth h1 {
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    color: #666;
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.text-center {
    text-align: center;
}

/* ---- Layout ---- */
.auth-card {
    background: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.app-logo img {
    display: block;
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
}

button[type="submit"],
.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background-color: #0056b3;
}

/* ---- Outline buttons / badge links ---- */
.btn-outline-primary,
.btn-outline-danger {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

/* ---- Centered text link (under an auth card form) ---- */
.auth-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ---- Feedback ---- */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.errorlist li {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.messages li {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.messages li.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.messages li.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.helptext {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ---- Inquiry tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

tr:hover {
    background-color: #f5f5f5;
}

.transcription-row {
    background-color: #f9f9f9;
}

.transcription {
    word-wrap: break-word;
    color: #555;
    padding: 12px;
}

.recording-link {
    color: #007bff;
    text-decoration: none;
}

.recording-link:hover {
    text-decoration: underline;
}

.no-inquiries {
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

/* ---- Profile info ---- */
.profile-info {
    margin: 0;
}

.profile-info dt {
    font-weight: bold;
    color: #333;
    margin-top: 15px;
}

.profile-info dt:first-child {
    margin-top: 0;
}

.profile-info dd {
    margin: 5px 0 0;
    color: #555;
}

.inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inline-list li {
    padding: 2px 0;
    color: #555;
}
