/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

nav ul li.user-info {
    color: #ecf0f1;
    font-size: 0.9rem;
}

nav ul li a.logout-link {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

nav ul li a.logout-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    color: #666;
    font-size: 1.2rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

/* Utility cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

/* Forms */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #2c3e50;
    gap: 0.35rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 0.65rem 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 1rem;
}

.form-grid textarea {
    resize: vertical;
}

.checkbox-row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1px solid #2c3e50;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.05s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.btn.primary {
    background: #2c3e50;
    color: #fff;
}

.btn.danger {
    border-color: #b00020;
    color: #b00020;
}

.table-wrapper {
    overflow-x: auto;
}

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

table th,
table td {
    border-bottom: 1px solid #e6e6e6;
    padding: 0.75rem;
    vertical-align: top;
}

table th {
    text-align: left;
    color: #2c3e50;
    font-size: 0.95rem;
}

table td textarea {
    width: 100%;
}

table td select,
table td input {
    width: 100%;
}

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

.table-wrapper .actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.small-input {
    max-width: 80px;
}

.flash-messages {
    margin-bottom: 1rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.alert.success {
    background: #e6f4ea;
    border-color: #9cd8ae;
    color: #1b5e20;
}

.alert.danger {
    background: #fdecea;
    border-color: #f5c6cb;
    color: #a1191e;
}

.alert.warning {
    background: #fff4e5;
    border-color: #ffd8a8;
    color: #8a5b00;
}

.alert.info {
    background: #e7f3ff;
    border-color: #b3daff;
    color: #0c4e8a;
}

/* Inline form styling */
.form-inline {
    display: inline;
}

/* Answer question sections */
.question-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.question-section h3 {
    margin-bottom: 1rem;
}

/* Checkbox label styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty state text */
.empty-state {
    text-align: center;
    color: #666;
}

/* Details section */
.details-section {
    margin-bottom: 1.5rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.login-header {
    margin-bottom: 10px;
}

.login-tagline {
    color: #666;
    margin-bottom: 40px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-bottom: 16px;
    transition: background-color 0.2s;
}

.oauth-button:hover {
    background-color: #f8f9fa;
}

.oauth-button svg {
    width: 20px;
    height: 20px;
}

.login-security-notice {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: #999;
}