.modal-large {
    width: 80%;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.gallery-layout {
    display: flex;
    height: 100%;
}

.gallery-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;
}

.gallery-sidebar h3 {
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
}

.gallery-sidebar ul {
    list-style: none;
    padding: 0;
}

.gallery-sidebar li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    color: #333;
}

.gallery-sidebar li:hover {
    background: #e9ecef;
}

.gallery-sidebar li.active {
    background: #007bff;
    color: white;
}

.gallery-main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-header input {
    padding: 8px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.template-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s;
    background: white;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.template-preview {
    height: 120px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 30px;
}

.template-info {
    padding: 10px;
}

.template-name {
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-date {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.load-template-btn {
    width: 100%;
    padding: 8px 12px;
    background-color: #4F46E5;
    /* Indigo */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.load-template-btn:hover {
    background-color: #4338ca;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}