/* Blood Draw Tracker Styles */
/* Matches Figma design with email-style layout adapted for web */

/* Status Selector - Development/Testing Tool */
.status-selector-container {
    max-width: 640px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.status-selector-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #856404;
    white-space: nowrap;
}

.status-selector {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #ffc107;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.status-selector:hover {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.status-selector:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.status-selector-info {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    color: #856404;
    flex: 1;
    min-width: 200px;
}

.status-selector-info strong {
    color: #664d03;
    font-weight: 700;
}

/* Travalabs API Tester */
.travalabs-tester-container {
    max-width: 640px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.travalabs-tester-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1565c0;
    margin-bottom: 12px;
}

.travalabs-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.travalabs-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    border: 2px solid #2196f3;
    border-radius: 4px;
    background-color: white;
    color: #333;
    transition: all 0.2s;
}

.travalabs-input:hover {
    border-color: #1976d2;
}

.travalabs-input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.travalabs-input::placeholder {
    color: #90a4ae;
}

.travalabs-submit-btn {
    padding: 10px 20px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.travalabs-submit-btn:hover:not(:disabled) {
    background-color: #1976d2;
}

.travalabs-submit-btn:disabled {
    background-color: #90caf9;
    cursor: not-allowed;
}

.travalabs-response {
    margin-top: 12px;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.blood-draw-tracker-page {
    background-color: #fafafa;
    min-height: 100vh;
    padding: 20px 8px;
    text-align: left;
}

.blood-draw-tracker-container {
    max-width: 640px;
    margin: 0 auto;
    background-color: white;
    border: 1px solid #afcee9;
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
}

/* Header Banner */
.tracker-banner {
    background: linear-gradient(97.21deg, #e5f8f6 0%, #d7e6f4 100.08%);
    padding: 16px;
    text-align: center;
}

.tracker-logo {
    height: 49px;
    width: auto;
}

/* Content Area */
.tracker-content-area {
    padding: 40px 28px;
}

/* Progress Tracker Section */
.progress-tracker-section {
    margin-bottom: 28px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-info {
    flex: 1;
    min-width: 200px;
}

.status-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 21.6px;
    line-height: 32px;
    letter-spacing: 0.01px;
    color: #163550;
    margin: 0 0 8px 0;
}

.status-time {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0.02px;
    color: #18181b;
    margin: 0;
}

.status-time strong {
    font-weight: 700;
}

.status-details {
    text-align: right;
    padding-top: 5px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 20px;
    letter-spacing: 0.02px;
    margin-bottom: 10px;
}

.status-badge.badge-success {
    background-color: #d1f4e0;
    color: #095028;
}

.status-badge.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.next-step {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 20px;
    letter-spacing: 0.02px;
    color: #52525b;
    margin: 0;
}

.next-step strong {
    font-weight: 700;
}

/* Timeline (Pizza Tracker) */
.timeline-container {
    margin: 20px 0;
    width: 100%;
}

.timeline {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0; /* Remove gap to allow connectors to fill space */
}

.timeline-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* Allow flex items to shrink below content size */
}

/* Last timeline item should not flex, only take space for the node */
.timeline-item:last-child {
    flex: 0 0 auto;
}

.timeline-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background: var(--Content-borders-neutral-border-subtle, #E4E4E7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-node.node-complete,
.timeline-node.node-current {
    background-color: transparent;
    border: none;
}

.timeline-node.node-complete, .timeline-node.node-current, .timeline-node.node-end {
    width: 20px;
    height: 20px;
}

.timeline-connector {
    flex: 1 1 auto;
    height: 4px;
    border-radius: 2px;
    margin-left: 4px; /* 4px gap between node and connector */
    margin-right: 4px;
}

.timeline-connector.connector-complete {
    background-color: #0e793c;
}

.timeline-connector.connector-pending {
    background: var(--Content-borders-neutral-border-subtle, #E4E4E7);
}

.timeline-connector.connector-current {
    background: var(--buttons-links-success-tonal-base, #D1F4E0);
}

.divider {
    height: 1px;
    background-color: #d4d4d8;
    margin: 20px 0;
}

/* Message Section */
.tracker-message-section {
    font-family: 'Nunito Sans', sans-serif;
}

.greeting {
    font-size: 18px;
    line-height: 28.8px;
    letter-spacing: 0.02px;
    color: #18181b;
    font-weight: 400;
    margin: 0 0 28px 0;
}

.message-content {
    font-size: 18px;
    line-height: 28.8px;
    letter-spacing: 0.02px;
    color: #18181b;
    font-weight: 400;
    margin: 0 0 28px 0;
}

.message-content p {
    margin: 0 0 14.4px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.tracking-info {
    margin: 28px 0;
    font-size: 18px;
    line-height: 28.8px;
    color: #18181b;
}

.tracking-info strong {
    font-weight: 600;
}

/* Action Button */
.action-button {
    background-color: #23537c;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28.8px;
    letter-spacing: 0.02px;
    cursor: pointer;
    margin: 28px 0;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: #1a3f5e;
}

.action-button:active {
    background-color: #142e47;
}

/* Delivery Info */
.delivery-info {
    margin: 28px 0;
}

.delivery-time {
    font-size: 18px;
    line-height: 28.8px;
    color: #18181b;
    margin: 0 0 14.4px 0;
}

.delivery-address {
    font-size: 18px;
    line-height: 28.8px;
    color: #18181b;
}

.address-text {
    font-weight: 600;
    margin: 4px 0 0 0;
}

/* Decline Reason */
.decline-reason {
    padding: 16px;
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    margin: 28px 0;
    font-size: 16px;
    line-height: 24px;
    color: #18181b;
}

/* Signoff Section */
.signoff-section {
    margin: 28px 0;
    font-size: 18px;
    line-height: 28.8px;
    color: #18181b;
    text-align: left;
}

.signoff-section p {
    margin: 0 0 4px 0;
}

.team-name {
    font-weight: 600;
}

.support-email a {
    color: #23537c;
    text-decoration: underline;
    font-weight: 600;
}

.support-email a:hover {
    color: #1a3f5e;
}

/* Help Links */
.help-links-section {
    display: flex;
    gap: 28px;
    margin: 28px 0;
}

.help-card {
    flex: 1;
    border: 1px solid #d4d4d8;
    border-radius: 13px;
    padding: 53px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.help-card:hover {
    border-color: #a1a1aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-card p {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28.8px;
    letter-spacing: 0.02px;
    color: #000;
    margin: 0;
}

/* Footer */
.tracker-footer {
    background-color: #f4f4f5;
    padding: 40px 20px;
    text-align: center; /* Keep footer centered */
}

.footer-help-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0.02px;
    color: #18181b;
    margin: 0 0 16px 0;
}

.footer-help-text a {
    color: #23537c;
    text-decoration: underline;
}

.footer-help-text a:hover {
    color: #1a3f5e;
}

.footer-links {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12.5px;
    line-height: 20px;
    letter-spacing: 0.02px;
    margin: 16px 0;
}

.footer-links a {
    color: #23537c;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #1a3f5e;
}

.footer-links .separator {
    margin: 0 14px;
    color: #71717a;
}

.footer-divider {
    height: 1px;
    background-color: #d4d4d8;
    margin: 16px auto;
    max-width: 600px;
}

.copyright {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 20px;
    letter-spacing: 0.02px;
    color: #18181b;
    margin: 16px 0 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blood-draw-tracker-page {
        padding: 10px 4px;
    }

    .status-selector-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .status-selector-label {
        text-align: center;
    }

    .status-selector {
        min-width: 100%;
    }

    .status-selector-info {
        text-align: center;
        min-width: 100%;
    }

    .travalabs-tester-container {
        margin: 0 auto 16px auto;
    }

    .travalabs-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .travalabs-input {
        min-width: 100%;
    }

    .travalabs-submit-btn {
        width: 100%;
    }

    .tracker-content-area {
        padding: 28px 16px;
    }

    .progress-header {
        flex-direction: column;
    }

    .status-details {
        text-align: left;
        margin-top: 12px;
    }

    .help-links-section {
        flex-direction: column;
        gap: 16px;
    }

    .help-card {
        padding: 40px 20px;
    }

    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .status-title {
        font-size: 18px;
        line-height: 26px;
    }

    .message-content,
    .greeting {
        font-size: 16px;
        line-height: 24px;
    }

    .action-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}
