* {
    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;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 280px;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    color: #95a5a6;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.tab:hover {
    background-color: rgba(255,255,255,0.1);
}

.tab.active {
    background-color: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.tab-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
    font-size: 12px;
}

.tab.active .tab-number {
    background-color: #3498db;
}

/* Main Content */
.content {
    flex: 1;
    overflow-y: auto;
    background-color: white;
}

.content-inner {
    max-width: 900px;
    padding: 40px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

h3 {
    color: #34495e;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

.workflow-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.workflow-box h4 {
    color: #2c3e50;
    margin-top: 0;
}

.email-block {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.email-subject {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-box {
    background-color: #ecf0f1;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.step-title {
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 10px;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tag {
    background-color: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 13px;
}

.objective-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

strong {
    color: #2c3e50;
}

code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Subtabs */
.subtabs-container {
    background-color: #ecf0f1;
    padding: 20px;
    margin: -40px -40px 30px -40px;
    border-bottom: 2px solid #bdc3c7;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subtab {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.subtab:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.subtab.active {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.subsection {
    display: none;
}

.subsection.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.analysis-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.comparison-box {
    background-color: #f3e5f5;
    border-left: 4px solid #9c27b0;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.section-letter {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

.workflow-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    background-color: #e3f2fd;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #3498db;
}

.workflow-link:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
}

/* Checklist Styles */
.phase-box {
    background-color: #f8f9fa;
    border-left: 4px solid #27ae60;
    padding: 25px;
    margin: 25px 0;
    border-radius: 4px;
}

.phase-title {
    font-size: 22px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checklist-section {
    margin: 20px 0;
}

.checklist-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.checklist-item:hover {
    background-color: #f0f0f0;
}

.checklist-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item label {
    cursor: pointer;
    user-select: none;
    line-height: 1.6;
}

.checklist-item.completed label {
    text-decoration: line-through;
    color: #95a5a6;
}

.workflow-checklist {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.workflow-checklist-title {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.checklist-subsection {
    margin-left: 20px;
    margin-top: 15px;
}

.checklist-subsection-title {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #ecf0f1;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.checklist-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 30px;
    margin: -40px -40px 30px -40px;
    border-radius: 0;
}

.checklist-header h2 {
    color: white;
    border: none;
    margin: 0;
    font-size: 32px;
}

.checklist-header p {
    margin: 10px 0 0 0;
    font-size: 16px;
    opacity: 0.95;
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-overlay.hidden {
    display: none;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.login-secured {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-form {
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.login-error.show {
    display: block;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .content-inner {
        padding: 20px;
    }

    .subtabs-container {
        margin: -20px -20px 20px -20px;
    }

    .checklist-header {
        margin: -20px -20px 20px -20px;
        padding: 20px;
    }

    .checklist-header h2 {
        font-size: 24px;
    }

    .checklist-header p {
        font-size: 14px;
    }

    .login-box {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 24px;
    }
}
