:root {
    --linkedin-blue: #0a66c2;
    --linkedin-light-blue: #378fe9;
    --success-green: #057642;
    --warning-orange: #e16745;
    --error-red: #cc1016;
    --neutral-gray: #666666;
    --light-gray: #f3f2ef;
    --dark-gray: #191919;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2c2c2c 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    max-width: 1400px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.navbar-subtitle {
    font-size: 0.875rem;
    color: #b0b0b0;
    margin: 0;
}

.main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 320px;
    background: var(--white);
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-panel {
    background: var(--white);
    border-bottom: 1px solid #e1e5e9;
    padding: 1.5rem;
}

.sidebar-panel h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requests-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.request-item {
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    //cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.request-item:hover {
    background: #f8f9fa;
    border-color: var(--linkedin-blue);
}

.request-item.active {
    background: rgba(10, 102, 194, 0.1);
    border-color: var(--linkedin-blue);
}

.request-timestamp {
    font-size: 0.75rem;
    color: var(--neutral-gray);
    margin-bottom: 0.25rem;
}

.request-id {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.main-panel {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-panel-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.main-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    flex: 1;
}

.code-output {
    flex: 1;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    overflow: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid #333;
}

.setup-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.setup-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    border: 1px solid #e1e5e9;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.btn {
    display: inline-flex;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    min-height: 44px;
}

.btn-primary {
    background: var(--linkedin-blue);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    background: var(--linkedin-light-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid #d0d7de;
}

.btn-secondary:hover {
    background: #e1e5e9;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.status-connected {
    background: rgba(5, 118, 66, 0.1);
    color: var(--success-green);
}

.status-testing {
    background: rgba(225, 103, 69, 0.1);
    color: var(--warning-orange);
}

.status-neutral {
    background: rgba(102, 102, 102, 0.1);
    color: var(--neutral-gray);
}

.status-alert {
    background: rgba(204, 16, 22, 0.1);
    color: var(--error-red);
}

.status-neutral {
    background: rgba(178, 178, 178, 0.1);
    color: var(--neutral-gray);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--neutral-gray);
}

.info-value {
    color: var(--dark-gray);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.output-section {
    margin-top: 1.5rem;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.output-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.output-status {
    font-size: 0.875rem;
    color: var(--neutral-gray);
}

pre {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 0;
    //overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.45;
    //overflow-y: auto;
}

.hidden {
    display: none !important;
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    fill: currentColor;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.empty-state {
    color: var(--neutral-gray);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem 0;
}

.control-section {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
        max-height: 300px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .button-group {
        flex-direction: column;
    }

    .setup-card {
        margin: 1rem;
        padding: 2rem;
    }
}