* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
}

.header {
    background-color: #004287;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background-color: #E74C3C;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #C0392B;
}

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

.content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    color: #333;
}

.content h1, .content h2, .content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1rem;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #3498DB;
    color: white;
}

.nav-btn:hover {
    background-color: #2980B9;
    transform: translateY(-2px);
}

.submit-btn {
    background-color: #27AE60;
}

.submit-btn:hover {
    background-color: #229954;
}

.progress-section {
    background-color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: #3498DB;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498DB, #2980B9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Markdown styling */
.content strong {
    font-weight: 600;
    color: #2C3E50;
}

.content em {
    font-style: italic;
    color: #555;
}

.content a {
    color: #3498DB;
    text-decoration: none;
    border-bottom: 1px solid #3498DB;
    transition: color 0.3s ease;
}

.content a:hover {
    color: #2980B9;
    border-bottom-color: #2980B9;
}

.content ul, .content ol {
    margin: 1rem 0 1rem 2rem;
    padding: 0;
}

.content ul {
    list-style-type: disc;
}

.content ol {
    list-style-type: decimal;
}

.content li {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Completion page styling */
.completion-content {
    text-align: center;
}

.completion-icon {
    font-size: 4rem;
    color: #27AE60;
    margin-bottom: 1rem;
}

.completion-content h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.completion-content > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.email-preview {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #3498DB;
    border-radius: 4px;
}

.email-preview h3 {
    color: #2C3E50;
    margin-top: 0;
}

.email-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.email-box pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    line-height: 1.5;
}

.completion-info {
    background-color: #e8f5e9;
    border: 1px solid #27AE60;
    border-radius: 4px;
    padding: 1rem;
    margin: 2rem 0;
    color: #1b5e20;
}

/* Workflows Table Styling */
.workflows-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.workflows-section h2 {
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.workflows-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.workflows-table thead {
    background-color: #34495E;
    color: white;
}

.workflows-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2C3E50;
}

.workflows-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
}

.workflows-table tbody tr:hover {
    background-color: #f9f9f9;
}

.workflows-table td {
    padding: 1rem;
    color: #333;
}

.workflow-row {
    cursor: pointer;
}

.workflow-row.expandable {
    font-weight: 500;
}

.workflow-name {
    color: #2C3E50;
    font-weight: 500;
}

.workflow-date {
    color: #555;
    font-size: 0.95rem;
}

.workflow-expand {
    text-align: center;
    width: 40px;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    color: #3498DB;
    transition: color 0.2s ease;
}

.expand-btn:hover {
    color: #2980B9;
}

.workflow-details {
    background-color: #f9f9f9;
    display: table-row;
}

.workflow-details.hidden {
    display: none;
}

.detail-date {
    color: #888;
    font-size: 0.9rem;
    padding-left: 1rem;
}
