/* EDVC Mapper - Modal Styles */

/* Main Menu Sidebar */
.edvc-main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    overflow-y: auto;
}

.edvc-menu-content {
	padding-top: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edvc-menu-logo {
    padding-left: 2rem;
	max-height: 40px;
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}


.edvc-menu-items {
	margin-top: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edvc-menu-item {
    background: none;
    border: none;
    border-radius: var(--edvc-border-radius);
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--edvc-transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    color: var(--edvc-text-primary);
    font-size: 14px;
    font-weight: 500;
}

.edvc-menu-item:hover {
    background-color: rgba(0, 124, 186, 0.1);
    border-color: var(--edvc-highlight);
}

.edvc-menu-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.edvc-menu-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
    font-size: 12px;
    color: var(--edvc-text-secondary);
    text-align: center;
}



/* Template Modal */
.edvc-template-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 2rem;
}

.edvc-template-content {
    background-color: white;
    border-radius: var(--edvc-border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.edvc-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.edvc-template-item {
    border: 2px solid #e1e8ed;
    border-radius: var(--edvc-border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--edvc-transition);
    text-align: center;
}

.edvc-template-item:hover {
    border-color: var(--edvc-highlight);
    box-shadow: var(--edvc-shadow);
}

.edvc-template-icon {
    width: 60px;
    height: 60px;
    background-color: var(--edvc-bg-navbar);
    border-radius: var(--edvc-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.edvc-template-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--edvc-text-primary);
    margin-bottom: 0.5rem;
}

.edvc-template-description {
    font-size: 14px;
    color: var(--edvc-text-secondary);
    line-height: 1.4;
}

/* Confirmation Modal */
.edvc-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.edvc-confirm-content {
    background-color: white;
    border-radius: var(--edvc-border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 400px;
    text-align: center;
}

.edvc-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--edvc-text-primary);
    margin-bottom: 1rem;
}

.edvc-confirm-message {
    color: var(--edvc-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.edvc-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .edvc-main-menu {
        width: 100vw;
    }
    
    .edvc-phase-selector {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .edvc-template-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
}


@media (max-width: 480px) {
    .edvc-menu-content {
        padding: 1rem;
    }
    
    .edvc-confirm-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Animation Classes */
.edvc-modal-enter {
    animation: edvcModalEnter 0.3s ease-out;
}

.edvc-modal-exit {
    animation: edvcModalExit 0.3s ease-out;
}

@keyframes edvcModalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes edvcModalExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}