/* ==============================================
   Modal Styles - Shared across pages
   ============================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #333;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Template List (for template selection modals) */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.template-btn {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    text-align: left;
    /*display: flex;
    justify-content: space-between;*/
    align-items: center;
}

.template-btn:hover {
    border-color: #1a8b9d;
    background-color: #f0f9fa;
    transform: translateX(5px);
}

.template-btn strong {
    color: #1a8b9d;
}

.btn-close {
    background: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-close:hover {
    background: #555;
}

/* Close button (X) for modals */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

/* Logo Grid (for logo library) */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.logo-item {
    cursor: pointer;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.logo-item:hover {
    border-color: #1a8b9d;
    background: #f0f9fa;
}