/* ========================================
   Project Info Display in Header
   ======================================== */

.project-info-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 16px;
    min-width: 200px;
}

.project-name-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-icon {
    font-size: 16px;
    line-height: 1;
}

.project-name-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.unsaved-indicator {
    color: #ffeb3b;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.last-saved-text {
    font-size: 10px;
    color: #888;
    padding-left: 26px;
    font-style: italic;
}

.project-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-actions .e-btn {
    font-size: 12px !important;
    padding: 4px 12px !important;
}

/* Load disabled hint (shown on Sag & Tension tab) */
.load-disabled-hint {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: help;
    white-space: nowrap;
}

.load-disabled-hint:hover {
    background-color: #ffe8a1;
    border-color: #ffd966;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-info-display {
        display: none;
    }
    
    .project-actions {
        gap: 4px;
    }
    
    .project-actions .e-btn {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
}
