/* Modal */
.modal
{
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.show
{
    opacity: 1;
    visibility: visible;
}

.modal-backdrop
{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content
{
    position: relative;
    background: var(--card-bg, #1a1f2e);
    border: 1px solid var(--border-primary, #2d3748);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content
{
    transform: scale(1);
}

.modal-header
{
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary, #2d3748);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3
{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    color: var(--text-primary, #e2e8f0);
    margin: 0;
}

.modal-header h3 i
{
    width: 22px;
    height: 22px;
    color: #f59e0b;
}

.modal-close
{
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover
{
    color: var(--link-hover-color);
}

.modal-body
{
    padding: 24px;
    color: var(--text-primary, #e2e8f0);
    overflow-y: auto;
    flex: 1;
}

/* 커스텀 스크롤바 */
.modal-body::-webkit-scrollbar
{
    width: 8px;
}

.modal-body::-webkit-scrollbar-track
{
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 4px 0;
}

.modal-body::-webkit-scrollbar-thumb
{
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover
{
    background: rgba(59, 130, 246, 0.5);
}

/* Firefox 스크롤바 */
.modal-body
{
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) rgba(255, 255, 255, 0.05);
}

.modal-body .text-muted
{
    color: var(--text-secondary, #94a3b8);
    font-size: 0.875rem;
    margin-top: 8px;
}

.modal-footer
{
    padding: 16px 24px;
    border-top: 1px solid var(--border-primary, #2d3748);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Modal Form */
.modal-content form
{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
