/* EGCT Trading Styles - Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; background: #f4f6f9; }

.container { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* 버튼 */
.btn { 
    padding: 10px 20px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-family: inherit;
    font-weight: 600; 
    font-size: 14px; 
    transition: all 0.2s;
}
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #b71c1c; }
.btn-primary { background: #0a66c2; color: #fff; }
.btn-primary:hover { background: #004182; }
.btn-secondary { background: #fff; color: #333; border: 1px solid #ccc; }
.btn-secondary:hover { background: #f5f5f5; }

/* 입력 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #333; font-weight: 600; }
.form-group input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-family: inherit;
    font-size: 14px; 
}
.form-group input:focus { outline: none; border-color: #0a66c2; }
.form-group input:disabled { background: #f3f3f3; cursor: not-allowed; }

/* 로그인 */
.login-container { 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}
.login-panel { 
    background: #fff; 
    padding: 48px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
}
.login-title { 
    text-align: center; 
    margin-bottom: 32px; 
    color: #191919;
    font-size: 20px;
    font-weight: 600;
}
.hidden { display: none !important; }

/* Modal - LinkedIn 스타일 (심플, 미니멀) */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); 
    align-items: center; 
    justify-content: center; 
    z-index: 1000;
    padding: 20px;
}
.modal.show { display: flex; }

.modal-content { 
    background: #fff; 
    border-radius: 8px; 
    max-width: 400px; 
    width: 100%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.modal-header { 
    padding: 20px 24px 0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #191919;
    margin: 0;
}

.modal-body { 
    padding: 16px 24px 24px;
}

.modal-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.modal-footer { 
    padding: 12px 24px 20px; 
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-footer .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
}

/* 모달 내부 - 거래 정보 */
.modal-info {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.modal-info-row:last-child {
    border-bottom: none;
}

.modal-info-row .label {
    color: #666;
}

.modal-info-row .value {
    font-weight: 600;
    color: #191919;
}

.modal-info-row.total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #dee2e6;
    border-bottom: none;
}

.modal-info-row.total .value {
    color: #0a66c2;
    font-size: 16px;
}
