/**
 * Project Selector Modal Styles
 * Based on unified modal design pattern
 */

.project-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.project-selector-modal.fade-out {
    opacity: 0;
}

.project-selector-modal.fade-out .project-selector-content {
    animation: projectSelectorFadeOut 0.3s ease-out;
}

.project-selector-content {
    background: var(--cream);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 90%;
    max-width: 450px;
    animation: projectSelectorFadeIn 0.3s ease-out;
    text-align: center;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes projectSelectorFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes projectSelectorFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Shake animation when trying to close */
.project-selector-content.shake {
    animation: projectSelectorShake 0.5s ease-in-out;
}

@keyframes projectSelectorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Icon at top of modal */
.project-selector-icon {
    margin-bottom: 20px;
}

.project-selector-icon .material-symbols-outlined {
    font-size: 64px;
    color: var(--accent-orange);
}

/* Title styling */
.project-selector-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0 0 15px 0;
}

/* Message styling */
.project-selector-message {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Project list */
.project-selector-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

/* Project item */
.project-selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.project-selector-item:hover {
    background: #f5f5f5;
    border-color: var(--accent-orange);
    transform: translateX(4px);
}

.project-selector-item:last-child {
    margin-bottom: 0;
}

.project-selector-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--dark-gray);
}

.project-selector-item.demo .material-symbols-outlined:first-child {
    color: #888;
}

.project-selector-item .project-name {
    flex: 1;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
}

.project-selector-item .arrow {
    font-size: 20px;
    color: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-selector-item:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Separator */
.project-selector-separator {
    display: flex;
    align-items: center;
    margin: 16px 0 12px 0;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-selector-separator::before,
.project-selector-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.project-selector-separator span {
    padding: 0 12px;
}

/* Empty message */
.project-selector-empty {
    padding: 30px;
    color: #888;
    font-style: italic;
}

/* Scrollbar styling */
.project-selector-list::-webkit-scrollbar {
    width: 6px;
}

.project-selector-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.project-selector-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.project-selector-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .project-selector-content {
        padding: 30px 20px;
    }

    .project-selector-list {
        max-height: 250px;
    }
}
